Python爬虫2-检测编码(使用chardet)

GitHub代码练习地址:https://github.com/Neo-ML/PythonPractice/blob/master/SpiderPrac02_chardet.py

网页编码问题解决


  chardet 可以自动检测页面文件的编码格式,但是,可能有误

需要安装, conda install chardet
原文地址:https://www.cnblogs.com/sl0309/p/10470947.html