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

百度文库新版,运行的时候出现问题。 #115

Open
vvlaw opened this issue Mar 20, 2022 · 0 comments
Open

百度文库新版,运行的时候出现问题。 #115

vvlaw opened this issue Mar 20, 2022 · 0 comments

Comments

@vvlaw
Copy link

vvlaw commented Mar 20, 2022

vvlaw@archlinux  ~/python  python baiduwenku.py  ✔  1737  19:38:44
请输入要下载的文库URL地址https://wenku.baidu.com/view/9d22334ca0116c175e0e48bc.html
Traceback (most recent call last):
File "/home/vvlaw/python/baiduwenku.py", line 101, in
main()
File "/home/vvlaw/python/baiduwenku.py", line 86, in main
content = fetch_url(url)
File "/home/vvlaw/python/baiduwenku.py", line 10, in fetch_url
return session.get(url).content.decode('gbk')
UnicodeDecodeError: 'gbk' codec can't decode byte 0x80 in position 222: illegal multibyte sequence
vvlaw@archlinux  ~/python 

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