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

知乎登录报错 #4

Closed
igeology opened this issue Feb 17, 2020 · 1 comment
Closed

知乎登录报错 #4

igeology opened this issue Feb 17, 2020 · 1 comment

Comments

@igeology
Copy link

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

@CharlesPikachu
Copy link
Owner

You can refer https://stackoverflow.com/questions/14573001/nodejs-how-to-decode-base64-encoded-string-back-to-binary for solution

你版本太低的原因,解决方案在链接里有。后面的版本我会做更新

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

2 participants