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

UnicodeDecodeError: 'utf-8' codec can't decode byte 0x84 in position 1: invalid start byte请问要如何处理 #189

Open
LiuGuoJiang opened this issue Jan 12, 2021 · 2 comments

Comments

@LiuGuoJiang
Copy link

Traceback (most recent call last):
File "amemv-video-ripper.py", line 529, in
CrawlerScheduler(content)
File "amemv-video-ripper.py", line 151, in init
self.scheduling()
File "amemv-video-ripper.py", line 165, in scheduling
self.download_user_videos(url)
File "amemv-video-ripper.py", line 175, in download_user_videos
dytk = get_dytk(url)
File "amemv-video-ripper.py", line 115, in get_dytk
dytk = re.findall("dytk: '(.*)'", res.content.decode('utf-8'))
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x84 in position 1: invalid start byte

@LiuGuoJiang
Copy link
Author

@loadchange

@shipsywor
Copy link

@LiuGuoJiang

https://www.iesdouyin.com/share/music/6536362398318922509?app=aweme&iid=30337873848

Add above url in share-url.txt

In the repo make sure to replace:

"accept-encoding": "gzip, deflate, br",

with this:

"accept-encoding": "gzip, deflate",

Run it.

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