In Python, how do I decode GZIP encoding?

Posted by alex on Stack Overflow See other posts from Stack Overflow or by alex
Published on 2010-04-22T23:10:11Z Indexed on 2010/04/22 23:13 UTC
Read the original article Hit count: 165

Filed under:
|
|
|
|

I downloaded a webpage in my python script. In most cases, this works fine.

However, this one had a response header: GZIP encoding, and when I tried to print the source code of this web page, it had all symbols in my putty.

How do decode this to regular text?

© Stack Overflow or respective owner

Related posts about python

Related posts about encoding