Open liukun95 opened 6 years ago
File "zhihu.py", line 140, in login(secret, account) File "zhihu.py", line 90, in login _xsrf = get_xsrf() File "zhihu.py", line 56, in get_xsrf return _xsrf[0] IndexError: list index out of range 请问这是什么原因造成的。
User-Agent 不正确
知乎的验证码改了, 不能套用现有的代码
从开发者工具抓取User-Agent替换下py里面的agent
File "zhihu.py", line 140, in
login(secret, account)
File "zhihu.py", line 90, in login
_xsrf = get_xsrf()
File "zhihu.py", line 56, in get_xsrf
return _xsrf[0]
IndexError: list index out of range
请问这是什么原因造成的。