I use zlib to decompress gzipped content from web.
import zlib
import urllib
f=urllib.request.urlopen(url)
decompressed_data=zlib.decompress(f.read(), 16+zlib.MAX_WBITS)
More Related Contents:
- Replace non-ASCII characters with a single space
- How can I remove non-ASCII characters but leave periods and spaces?
- Why does Python print unicode characters when the default encoding is ASCII?
- Character reading from file in Python
- How to print UTF-8 encoded text to the console in Python < 3?
- UnicodeEncodeError: ‘ascii’ codec can’t encode character at special name [duplicate]
- Python – Unicode to ASCII conversion
- Who originally invented this type of syntax: -*- coding: utf-8 -*- [duplicate]
- Changing default encoding of Python?
- BeautifulSoup Grab Visible Webpage Text
- urllib2.HTTPError: HTTP Error 403: Forbidden
- How do you send a HEAD HTTP request in Python 2?
- How can I percent-encode URL parameters in Python?
- How to add both file and JSON body in a FastAPI POST request?
- How to avoid HTTP error 429 (Too Many Requests) python
- Inserting Line at Specified Position of a Text File
- Only extracting text from this element, not its children
- Is there an easy way to request a URL in python and NOT follow redirects?
- Python ‘requests’ library – define specific DNS?
- How to use python-docx to replace text in a Word document and save
- How to display text in pygame? [duplicate]
- Python ascii utf unicode
- How to get http headers in flask?
- What should I do if socket.setdefaulttimeout() is not working?
- Save a large file using the Python requests library [duplicate]
- Python requests speed up using keep-alive
- Flask – POST Error 405 Method Not Allowed
- Read a base 64 encoded image from memory using OpenCv python library
- How to catch 404 error in urllib.urlretrieve
- Json Encoder AND Decoder for complex numpy arrays