res = s.get(urlTemp, headers=headers, timeout=5)
res.encoding = res.apparent_encoding
# html_ = etree.HTML(res.content.decode('gbk'))
print(res.text)
python 爬虫 自动识别相应编码
猜你喜欢
转载自blog.csdn.net/weixin_41822224/article/details/113104958
今日推荐
周排行