美文网首页
python 乱码问题

python 乱码问题

作者: 王镇_ee87 | 来源:发表于2021-04-25 10:19 被阅读0次

今天爬取数据 得到的乱码 �U*3�{%K�e{K.���hV��U����-�B


image.png

解决办法
原来请求的时候 有个br 这个是返回压缩数据的 把他去掉 就好了 得到正常数据

#Accept-Encoding: gzip, deflate, br
Accept-Encoding: gzip, deflate

相关文章

网友评论

      本文标题:python 乱码问题

      本文链接:https://www.haomeiwen.com/subject/ynvxrltx.html