amemv-crawler icon indicating copy to clipboard operation
amemv-crawler copied to clipboard

UnicodeDecodeError: 'utf-8' codec can't decode byte 0xbf in position 5: invalid start byte

Open cheuhyakuroku opened this issue 4 years ago • 2 comments

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 0xbf in position 5: invalid start byte

cheuhyakuroku avatar Oct 07 '20 13:10 cheuhyakuroku

HI I have the same issue as you do.Did you find a solution?

majormulfunction018 avatar Oct 26 '20 14:10 majormulfunction018

https://stackoverflow.com/questions/49702214/python-requests-response-encoded-in-utf-8-but-cannot-be-decoded

This post will be helpful. But the script will still fail when parsing the response.

hpplayer avatar Nov 01 '20 11:11 hpplayer