You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 6, 2024. It is now read-only.
UPDATE: 2018.4.19
我通过pip3 install 安装的pakages, 以下问题是pip上的库和git上代码不一致造成的, 使用git上的最新版就没有问题了.
当前版本(fdad7bf - 2018.4.18) //此行描述有误
当第二次使用cookie的时候, 会在432行报错
File "/home/lalala/.local/lib/python3.5/site-packages/baidupcsapi/api.py", line 432, in _request
'bdstoken': self.user['token']
KeyError: 'token'
具体原因是,
第二次使用的时候, 因为cookie的存在,没有执行login, 也就没有执行_get_token, 所以self.user是一个空字段
但是_request上会直接使用self.user['token']
我临时修改了一下代码,以便执行,希望开发组可以fix这个bug
#默认加上token这个key
155 self.user = {'token':None}
The text was updated successfully, but these errors were encountered: