-
Notifications
You must be signed in to change notification settings - Fork 857
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
auth.py登录一直返回500错误 #71
Comments
请问楼上怎么加header,能说具体些吗? |
requests請求裏添加headers參數後錯誤變成正常的302跳轉請求,但是還是會提示驗證碼請求失敗啊 |
把request定义的时候加上一段,伪装成正常的浏览器就好了。
|
@SUSHUO |
不知道具體怎麼改的,可以嘗試用我的版本直接替代你的auth.py: https://github.com/simoncos/zhihu-analysis-python/blob/master/crawler/auth.py |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
`def search_xsrf():
"""
这里一直返回500,错误就是验证码请求失败
The text was updated successfully, but these errors were encountered: