python cchardet下载地址:
https://www.lfd.uci.edu/~gohlke/pythonlibs/#cchardet
使用方法:
获取网页的content,然后后去页面的编码,
根据页面编码进行encoding,如下:
html_chardet = cchardet.detect(html.content)
html.encoding = html_chardet['encoding']
python cchardet下载地址:
https://www.lfd.uci.edu/~gohlke/pythonlibs/#cchardet
使用方法:
获取网页的content,然后后去页面的编码,
根据页面编码进行encoding,如下:
html_chardet = cchardet.detect(html.content)
html.encoding = html_chardet['encoding']