From 99660f4218b75e41131bb1f98afcb39f37a5d858 Mon Sep 17 00:00:00 2001 From: yuangyaa Date: Fri, 15 Aug 2025 03:48:23 +0800 Subject: [PATCH] Remove mobile platform --- core/management/commands/crawl_qiushi.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/core/management/commands/crawl_qiushi.py b/core/management/commands/crawl_qiushi.py index 3107f64..6650426 100644 --- a/core/management/commands/crawl_qiushi.py +++ b/core/management/commands/crawl_qiushi.py @@ -8,8 +8,8 @@ class Command(BaseCommand): def add_arguments(self, parser): parser.add_argument('--platform', type=str, default='all', - choices=['qiushi', 'mobile', 'all'], - help='选择爬取平台: qiushi(求是网), mobile(移动端), all(全部)') + choices=['qiushi', 'all'], + help='选择爬取平台: qiushi(求是网), all(全部)') def handle(self, *args, **options): platform = options['platform'] @@ -22,12 +22,6 @@ class Command(BaseCommand): 'start_url': 'https://www.qstheory.cn', 'article_selector': 'a' }, - 'mobile': { - 'name': '求是移动端', - 'base_url': 'http://m.qstheory.cn', - 'start_url': 'http://m.qstheory.cn', - 'article_selector': 'a' - } } if platform == 'all':