python_zhihu icon indicating copy to clipboard operation
python_zhihu copied to clipboard

IndexError: list index out of range

Open Guppy0608 opened this issue 7 years ago • 5 comments

运行index.py时: Traceback (most recent call last): File "....\index.py", line 5, in zh=ZhiHu() File "...\python_zhihu.py", line 33, in init self.do_first() File "...\python_zhihu.py", line 260, in do_first self.login() File "...\python_zhihu.py", line 64, in login self.xsrf=re.findall('name="_xsrf" value="([\S\s]*?)"',r.text)[0] IndexError: list index out of range 新手求解答,谢谢各位大佬!

Guppy0608 avatar Dec 05 '17 13:12 Guppy0608

我也报同样的错误,新手求解答,谢谢各位大佬!

Usstzst avatar May 29 '18 13:05 Usstzst

me too!

ruibukedang0701 avatar Aug 27 '18 07:08 ruibukedang0701

求解。。

ZhengDanYang1 avatar Mar 27 '19 13:03 ZhengDanYang1

同!我运行 zh=ZhiHu() 也报同样的错误。

linyunhe avatar Apr 18 '20 20:04 linyunhe

我知道原因了,知乎现在登陆界面改成了默认【免密码登陆】,所以登陆那里之前的接口不能用了。

linyunhe avatar Apr 18 '20 21:04 linyunhe