How to download gz content in memory using Python requests module.
response = requests.post("http://foo.com/foo.gz") buffer_data = StringIO(response.content) # Lets decompress f = gzip.GzipFile(fileobj=buffer_data) for row in f.readlines(): print row