Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for i in cloudfront_logs:
- response = s3.get_object(Bucket=cloudfront_log_bucket, Key=i)['Body'].read()
- decompressed_data = zlib.decompressobj(32 + zlib.MAX_WBITS) #ignore gz file header
- print decompressed_data
- <zlib.Decompress object at 0x103234ae0>
- <zlib.Decompress object at 0x103234b78>
- <zlib.Decompress object at 0x103234ae0>
- <zlib.Decompress object at 0x103234b78>
- <zlib.Decompress object at 0x103234ae0>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement