mirror of
https://github.com/teddysun/across.git
synced 2025-04-23 04:19:31 +08:00
Thu Aug 24 22:54:50 CST 2017
This commit is contained in:
parent
72144401b6
commit
97b4755e38
10
cet_query.py
10
cet_query.py
@ -27,7 +27,7 @@ H = {'Accept':'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,
|
|||||||
'Host':'www.chsi.com.cn',
|
'Host':'www.chsi.com.cn',
|
||||||
'Referer':'http://www.chsi.com.cn/cet/',
|
'Referer':'http://www.chsi.com.cn/cet/',
|
||||||
'Upgrade-Insecure-Requests':'0',
|
'Upgrade-Insecure-Requests':'0',
|
||||||
'User-Agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3112.101 Safari/537.36',
|
'User-Agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.101 Safari/537.36',
|
||||||
}
|
}
|
||||||
|
|
||||||
def query(id__,name):
|
def query(id__,name):
|
||||||
@ -77,14 +77,14 @@ number = 420550171103500,420550171103600 ### 420550171103524 贺深
|
|||||||
|
|
||||||
### testing
|
### testing
|
||||||
|
|
||||||
text = query(420550171103524,'贺深')
|
'''text = query(420550171103524,'贺深')
|
||||||
if check(text):
|
if check(text):
|
||||||
print(parse(text))
|
print(parse(text))
|
||||||
else:
|
else:
|
||||||
print('没有')
|
print('没有')
|
||||||
exit(0)
|
exit(0)
|
||||||
### testing end
|
### testing end
|
||||||
names = ['贺深','张旭','尘飞杨']
|
names = ['贺深','张旭','尘飞杨']'''
|
||||||
|
|
||||||
'''for xm in names:
|
'''for xm in names:
|
||||||
for zkzh in [ i for i in range(*number) ]:
|
for zkzh in [ i for i in range(*number) ]:
|
||||||
@ -98,12 +98,12 @@ names = ['贺深','张旭','尘飞杨']
|
|||||||
else:
|
else:
|
||||||
print('result has not been checked')
|
print('result has not been checked')
|
||||||
print(zkzh,xm,sep='-->')'''
|
print(zkzh,xm,sep='-->')'''
|
||||||
'''text = query('420550171103524','贺深')
|
text = query('420550171103524','贺深')
|
||||||
if check(text):
|
if check(text):
|
||||||
print('result has been checked')
|
print('result has been checked')
|
||||||
result = parse(text)
|
result = parse(text)
|
||||||
print(result)
|
print(result)
|
||||||
append_file(result)
|
append_file(result)
|
||||||
else:
|
else:
|
||||||
print('result has not been checked')'''
|
print('result has not been checked')
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user