Skip to content
This repository has been archived by the owner on Jul 13, 2019. It is now read-only.

知乎登陆不进去 #15

Closed
SunCrazy opened this issue Apr 20, 2016 · 3 comments
Closed

知乎登陆不进去 #15

SunCrazy opened this issue Apr 20, 2016 · 3 comments

Comments

@SunCrazy
Copy link

SunCrazy commented Apr 20, 2016

完全copy您的代码,得到的结果是"验证码会话无效 :(”,接下来,在登陆之后尝试获取只有正常登陆才能获取的页面,但是依然获取的是登陆页面的代码。
url = 'https://www.zhihu.com/people/shi-wei-56-10/followees'
page = session.get(url, headers=headers)
print page.text

@xchaoinfo
Copy link
Owner

知乎的验证码获取的方式改了,thanks for your issue, I will solve it later.

@SunCrazy
Copy link
Author

对的对的,我刚发现。最后应该加一个“&type=login”,我刚测试了一下,成功了

@xchaoinfo
Copy link
Owner

问题,我已经修复了,thanks for your issue again!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants