super-l / superl-url

根据关键词,对搜索引擎内容检索结果的网址内容进行采集的一款程序。可自动从多个搜索引擎采集相关网站的真实地址与标题等信息,可保存为文件,自动去除重复URL。同时,也可以自定义忽略多条域名等。
http://www.msray.net/doc
618 stars 145 forks source link

网站出现UnicodeDecodeError: 'gbk' codec can't decode byte 0xae 问题解决 #12

Open xiaojp opened 5 years ago

xiaojp commented 5 years ago
  1. core/filter.py
    file_object = open('filter/filter_domain.txt') 修改为 file_object = open('filter/filter_domain.txt','r',encoding="utf-8") file_object = open('filter/filter_title.txt') 修改为 file_object = open('filter/filter_title.txt') 2.core/outdata.py file_handle = open(filepath, 'a') 修改为 file_handle = open(filepath, 'a',encoding="utf-8")
Mrhhhhhhx commented 5 years ago

谢谢老哥