Remove mobile platform
This commit is contained in:
@@ -10,7 +10,7 @@ class Command(BaseCommand):
|
||||
def add_arguments(self, parser):
|
||||
parser.add_argument('--platform', type=str, default='all',
|
||||
choices=['kjrb', 'mobile', 'all'],
|
||||
help='选择爬取平台: kjrb(科技日报), mobile(移动端), all(全部)')
|
||||
help='选择爬取平台: kjrb(科技日报), all(全部)')
|
||||
|
||||
def handle(self, *args, **options):
|
||||
platform = options['platform']
|
||||
@@ -23,12 +23,6 @@ class Command(BaseCommand):
|
||||
'start_url': 'http://digitalpaper.stdaily.com',
|
||||
'article_selector': 'a'
|
||||
},
|
||||
'mobile': {
|
||||
'name': '科技日报移动端',
|
||||
'base_url': 'http://m.stdaily.com',
|
||||
'start_url': 'http://m.stdaily.com',
|
||||
'article_selector': 'a'
|
||||
}
|
||||
}
|
||||
|
||||
if platform == 'all':
|
||||
|
||||
Reference in New Issue
Block a user