Skip to content

Instantly share code, notes, and snippets.

@thomas-maschler
Last active August 30, 2016 14:23
Show Gist options
  • Save thomas-maschler/5aedd2477d8bdd6367ee345ad8092abb to your computer and use it in GitHub Desktop.
Save thomas-maschler/5aedd2477d8bdd6367ee345ad8092abb to your computer and use it in GitHub Desktop.
Get S3 bucket content
from boto.s3.connection import S3Connection
conn = S3Connection('AWS_Key','AWS_Secret')
bucket = conn.get_bucket('my_bucket')
for key in bucket.list():
print key.name.encode('utf-8')
@thomas-maschler
Copy link
Author

call from cmd line

get_s3_bucket_content.py > content.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment