Skip to content

NoneType' object has no attribute 'get' #50

@jiangfeng0103

Description

@jiangfeng0103

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions