-
Notifications
You must be signed in to change notification settings - Fork 49
Expand file tree
/
Copy pathauto_opt_main.py
More file actions
33 lines (27 loc) · 987 Bytes
/
Copy pathauto_opt_main.py
File metadata and controls
33 lines (27 loc) · 987 Bytes
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
# -*- coding: utf-8 -*-
'''
@ Copyright (C) 2018 EfonFighting(email:efonfighting@126.com)(android_wechat:Efon-fighting)
@
@ env stetup:
@ sudo apt-get install python3-pip
@
'''
def main():
print("main start")
caseFlg = 'getGzh2Pdf'
print(caseFlg)
if(caseFlg == 'getGzh2Pdf'):
from android_wechat.get_gzh_essay_spider import gzhEssaySpider
from url2pdf import url2pdf
'''
@ 抓取步骤:1.通过carles+手机获取目标公众号header并修改gzhEssaySpider
@ 2.根据不同需求修改如下3个参数
'''
startNum = 0
endNum = 10000
gzhName = 'shenmidechengxuyuanmen'
indexFile='out/{gzhName}/{gzhName}.txt'.format(gzhName=gzhName)
gzhEssaySpider().spider_more(startNum, endNum, indexFile)
url2pdf.url2pdf(indexFile, startNum, endNum)
if __name__ == "__main__": #这里可以判断,当前文件是否是直接被python调用执行
main()