true_encoding
Usage:
>>>from true_encoding.debug import debug
>>>r = requests.get('http://www.fang.com')
>>>r.encoding = debug(r)
>>>print(r.text)
true_encoding is the method of solving the problem of 'ISO-8859-1' about parsing html.
pip install true-encoding==1.0.2
>>>from true_encoding.debug import debug
>>>r = requests.get('http://www.fang.com')
>>>r.encoding = debug(r)
>>>print(r.text)