私は python urllib2.urlopen を使用して html コンテンツを取得していますが、gzip された応答を取得しています。
圧縮されないようにヘッダーを設定できますか?
私のコード
response = urlopen(url,None , TIMEOUT)
html = response.read() # read html
print html
Tichodromaが提案したように、これを試してみてください
request = Request(url)
request.add_header('Accept-encoding', 'text/plain')
response = urlopen(request,None , TIMEOUT)
html = response.read().lower() # read html
print html
今それは働いています