diff --git a/core/management/commands/crawl_qizhi.py b/core/management/commands/crawl_qizhi.py index d6a36ba..614a498 100644 --- a/core/management/commands/crawl_qizhi.py +++ b/core/management/commands/crawl_qizhi.py @@ -8,8 +8,8 @@ class Command(BaseCommand): def add_arguments(self, parser): parser.add_argument('--platform', type=str, default='all', - choices=['qizhi', 'mobile', 'all'], - help='选择爬取平台: qizhi(旗帜网), mobile(移动端), all(全部)') + choices=['qizhi', 'all'], + help='选择爬取平台: qizhi(旗帜网), all(全部)') def handle(self, *args, **options): platform = options['platform'] @@ -22,12 +22,6 @@ class Command(BaseCommand): 'start_url': 'http://www.qizhiwang.org.cn', 'article_selector': 'a[href^="/"]' # 修改选择器以更好地匹配文章链接 }, - 'mobile': { - 'name': '旗帜网移动端', - 'base_url': 'http://m.qizhiwang.org.cn', - 'start_url': 'http://m.qizhiwang.org.cn', - 'article_selector': 'a[href^="/"]' # 修改选择器以更好地匹配文章链接 - } } if platform == 'all':