-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconfig.py
35 lines (30 loc) · 1.05 KB
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
__author__ = 'couldtt'
crawl_config = {
'duokan': {
'platform_name': '多看',
'url': 'http://www.duokan.com',
},
'taobao': {
'platform_name': '淘宝',
'url': 'http://ebook.taobao.com',
},
'dangdang': {
'platform_name': '当当',
'url': 'http://e.dangdang.com',
'ajax_url': 'http://e.dangdang.com/Standard/Framework/Core/hosts/ajax_api.php?isajax=1&page_id=14456&component_map_id=74284&domain=shuzi.dangdang.com&path_name=index&areaid=0&page_type=3&areatype=0&static_type=0&mix=1&domain_flag=1'
},
'netease': {
'platform_name': '网易',
'url': 'http://yuedu.163.com',
'ajax_url': 'http://yuedu.163.com/special/0021rt/indexrecommend.html',
},
'baidu': {
'platform_name': '百度',
'url': 'http://yuedu.baidu.com'
}
}
remark_config = (
'淘宝限免电子书电脑端只能在10:00~11:00领取,使用手机客户端领取时间到次日9点',
)
crawl_container = ['duokan', 'taobao', 'netease', 'baidu']
debug_container = ['baidu']