linux requests content乱码
在跑matters的热榜数据的时候,发现返回的数据有点点问题,解析不出来。
1 | load data error, 'utf-8' codec can't decode byte 0x83 in position 0: invalid start byte |
这里试了很多方法,最后找到了
删除Accept-Encoding="gzip, deflate, br"
中的br
具体文章是https://blog.csdn.net/wp7xtj98/article/details/112765324
linux requests content乱码
http://www.datehoer.com/posts/69c4abb7-6e80-11ee-a697-01b0896cf41d/