loadchange / amemv-crawler

🙌Easily download all the videos from TikTok(amemv).下载指定的 抖音(Douyin) 号的视频,抖音爬虫
MIT License
2.37k stars 625 forks source link

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

Open LiuGuoJiang opened 3 years ago

LiuGuoJiang commented 3 years ago

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 commented 3 years ago

@loadchange

shipsywor commented 3 years ago

@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.