We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aaafbc8 commit a0dd5c1Copy full SHA for a0dd5c1
1 file changed
Python/reptile/qq_strip.py
@@ -24,12 +24,12 @@
24
str_qiepian = regs.text[10:-3]
25
try:
26
js = json.loads(str_qiepian)['data']['commentList']
27
- except json.decoder.JSONDecodeError:
28
- print("请更换url地址,地址中的qzonetoken验证和g_tk有变")
29
- break
30
except KeyError:
31
print("请更换cookie!")
32
break
+ except json.decoder.JSONDecodeError:
+ print("请更换url地址,地址中的qzonetoken验证和g_tk有变")
+ break
33
if js == []:
34
print("Over! 共计 {} 页".format(json.loads(str_qiepian)['data']['total']))
35
0 commit comments