import urllib.request import chardet TestData = urllib.request.urlopen('http://www.baidu.com/').read() print(chardet.detect(TestData))
import urllib.request import chardet TestData = urllib.request.urlopen('http://www.baidu.com/').read() print(chardet.detect(TestData))