Skip to content
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

NoneType' object has no attribute 'get' #50

Open
jiangfeng0103 opened this issue Jul 24, 2019 · 1 comment
Open

NoneType' object has no attribute 'get' #50

jiangfeng0103 opened this issue Jul 24, 2019 · 1 comment

Comments

@jiangfeng0103
Copy link

File "C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-packages\zhihu\models\account.py", line 31, in login
return self._login_phone(account, password)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-packages\zhihu\models\account.py", line 37, in _login_phone
'_xsrf': self._get_xsrf(),
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-packages\zhihu\models\base.py", line 62, in _get_xsrf
xsrf = soup.find('input', attrs={"name": "_xsrf"}).get("value")
AttributeError: 'NoneType' object has no attribute 'get'

@jiangfeng0103
Copy link
Author

@KellyHwong

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

No branches or pull requests

1 participant