ca5
2/28/2014 - 2:53 AM

gzip sample

gzip sample



import zlib
buf=""
with open("hoge.gz") as f:
  buf = f.read()
z = zlib.decompressobj(16+zlib.MAX_WBITS)
print z.decompress(buf)