Skip to content

Commit a0dd5c1

Browse files
authored
Update qq_strip.py
1 parent aaafbc8 commit a0dd5c1

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Python/reptile/qq_strip.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@
2424
str_qiepian = regs.text[10:-3]
2525
try:
2626
js = json.loads(str_qiepian)['data']['commentList']
27-
except json.decoder.JSONDecodeError:
28-
print("请更换url地址,地址中的qzonetoken验证和g_tk有变")
29-
break
3027
except KeyError:
3128
print("请更换cookie!")
3229
break
30+
except json.decoder.JSONDecodeError:
31+
print("请更换url地址,地址中的qzonetoken验证和g_tk有变")
32+
break
3333
if js == []:
3434
print("Over! 共计 {} 页".format(json.loads(str_qiepian)['data']['total']))
3535
break

0 commit comments

Comments
 (0)