摘要: scrapy进行页面抓去的时候,保存的文件出现乱码,经过分析是编码的原因,只需要把编码转换为utf-8即可,代码片段......import chardet ...... content_type = chardet.detect(html_content) #print(content_typ... 阅读全文
posted @ 2015-04-17 11:55 Byrd 阅读(954) 评论(0) 推荐(0) 编辑