import requests url = 'https://requests.readthedocs.io/en/latest/' encoding = requests.get(url).encoding ## OUTPUT: 'ISO-8859-1'