egrcc / zhihu-python

获取知乎内容信息,包括问题,答案,用户,收藏夹信息
MIT License
2.29k stars 858 forks source link

auth.py登录返回403错误 #75

Open gozky opened 8 years ago

gozky commented 8 years ago

INFO: 正在加载配置文件 ... INFO: 提取XSRF 代码失败 INFO: 正在调用外部程序渲染验证码 ... INFO: Command: xdg-open verify.gif & 请输入验证码: EPY3 ERROR: 网络异常

Traceback (most recent call last):
  File "auth.py", line 249, in <module>
    login()
  File "auth.py", line 228, in login
    result = upload_form(form_data)
  File "auth.py", line 146, in upload_form
    raise NetworkError(u"表单上传失败!")
__main__.NetworkError

我是根据配置文件登录,输入验证码后,这里一直返回403,另外我已经在auth.py中所有requests.get添加了headers.