摘要: 1、手动将response设置为utf-8编码 response=requests.get(url) response.encoding='utf-8' page_text=response.text 2、将字符串先进行iso-8859-1编码,再进行gbk解码 str=str.encode('is 阅读全文
posted @ 2020-09-19 20:45 vvan9 阅读(2513) 评论(1) 推荐(2) 编辑
摘要: 记录学习爬虫过程中的实例链接:http://note.youdao.com/noteshare?id=63b4021d3ba9c42437bdbcf6064009f1&sub=791206C474404AF2946A21361EDC30DC 阅读全文
posted @ 2020-09-19 19:45 vvan9 阅读(819) 评论(0) 推荐(0) 编辑