Advertisement
Guest User

Untitled

a guest
Dec 6th, 2019
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. for i in cloudfront_logs:
  2. response = s3.get_object(Bucket=cloudfront_log_bucket, Key=i)['Body'].read()
  3. decompressed_data = zlib.decompressobj(32 + zlib.MAX_WBITS) #ignore gz file header
  4. print decompressed_data
  5.  
  6. <zlib.Decompress object at 0x103234ae0>
  7. <zlib.Decompress object at 0x103234b78>
  8. <zlib.Decompress object at 0x103234ae0>
  9. <zlib.Decompress object at 0x103234b78>
  10. <zlib.Decompress object at 0x103234ae0>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement