diff --git a/cet.txt b/cet.txt index a74c2b1..eb97832 100644 --- a/cet.txt +++ b/cet.txt @@ -1,4 +1,3 @@ 姓名:潘猛学校:武汉晴川学院考试级别:英语四级笔试成绩准考证号:420550171103523总分:273听力:87阅读:109写作和翻译:77口试成绩准考证号:--等级:-- -姓名:潘猛学校:武汉晴川学院考试级别:英语四级笔试成绩准考证号:420550171103523总分:273听力:87阅读:109写作和翻译:77口试成绩准考证号:--等级:-- 姓名:贺深学校:武汉晴川学院考试级别:英语四级笔试成绩准考证号:420550171103524总分:370听力:156阅读:95写作和翻译:119口试成绩准考证号:--等级:-- 姓名:张旭学校:武汉晴川学院考试级别:英语四级笔试成绩准考证号:420550171103516总分:280听力:114阅读:88写作和翻译:78口试成绩准考证号:--等级:-- diff --git a/cet_query.py b/cet_query.py index 8840943..8dbdfc3 100644 --- a/cet_query.py +++ b/cet_query.py @@ -26,7 +26,6 @@ data = 'query?zkzh={}&xm={}' H = {'Accept':'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8', 'Accept-Encoding':'gzip, deflate', 'Accept-Language':'zh-CN,zh;q=0.8', -'Connection':'close', 'Host':'www.chsi.com.cn', 'Referer':'http://www.chsi.com.cn/cet/', 'Upgrade-Insecure-Requests':'1', @@ -35,7 +34,7 @@ H = {'Accept':'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp, def query(id__,name): s = requests.Session() - req = s.get(URL,headers=H) + req = s.get(URL,headers=H,proxies=proxy) if req.ok : url = URL + data.format(id__,quote(name)) @@ -74,7 +73,7 @@ def append_file(string): with open('cet.txt','a+') as f: f.writelines(string + os.linesep) -number = 420550171103515,420550171103600 ### 420550171103524 贺深 +number = 420550171103600,420550171103700 ### 420550171103524 贺深 ### testing @@ -85,7 +84,7 @@ else: print('没有') exit(0)''' ### testing end -names = ['赵昊罡'] +names = ['李泽峰'] for num in range(1,11): for zkzh in [i for i in range(*number)]: for xm in names: