diff --git a/core/management/commands/crawl_gmrb.py b/core/management/commands/crawl_gmrb.py index 72cd6ca..02fe73a 100644 --- a/core/management/commands/crawl_gmrb.py +++ b/core/management/commands/crawl_gmrb.py @@ -9,7 +9,7 @@ class Command(BaseCommand): def add_arguments(self, parser): parser.add_argument('--platform', type=str, default='all', choices=['gmrb', 'mobile', 'all'], - help='选择爬取平台: gmrb(光明日报), mobile(移动端), all(全部)') + help='选择爬取平台: gmrb(光明日报), all(全部)') def handle(self, *args, **options): platform = options['platform'] @@ -22,12 +22,6 @@ class Command(BaseCommand): 'start_url': 'https://www.gmw.cn', 'article_selector': 'a' }, - 'mobile': { - 'name': '光明日报移动端', - 'base_url': 'https://m.gmw.cn', - 'start_url': 'https://m.gmw.cn', - 'article_selector': 'a' - } } if platform == 'all':