zkqiang/zhihu-login

知乎登录报错

igeology opened this issue · 1 comments

Traceback (most recent call last):
File "D:/Python_study/ZhihuSpider/test.py", line 600, in
zhihu().login('----', '------')
File "D:/Python_study/ZhihuSpider/test.py", line 559, in login
data = js.call('Q', urlencode(data))
File "D:\Python_study\ZhihuSpider\venv\lib\site-packages\execjs_abstract_runtime_context.py", line 37, in call
return self._call(name, *args)
File "D:\Python_study\ZhihuSpider\venv\lib\site-packages\execjs_external_runtime.py", line 92, in _call
return self.eval("{identifier}.apply(this, {args})".format(identifier=identifier, args=args))
File "D:\Python_study\ZhihuSpider\venv\lib\site-packages\execjs_external_runtime.py", line 78, in eval
return self.exec
(code)
File "D:\Python_study\ZhihuSpider\venv\lib\site-packages\execjs_abstract_runtime_context.py", line 18, in exec

return self.exec(source)
File "D:\Python_study\ZhihuSpider\venv\lib\site-packages\execjs_external_runtime.py", line 88, in exec
return self._extract_result(output)
File "D:\Python_study\ZhihuSpider\venv\lib\site-packages\execjs_external_runtime.py", line 167, in _extract_result
raise ProgramError(value)
execjs._exceptions.ProgramError: TypeError: base64 is not a function

node 版本过低导致的
https://stackoverflow.com/questions/14573001/nodejs-how-to-decode-base64-encoded-string-back-to-binary

BTW:账号密码暴露了,要改下密码了