Last active
August 30, 2016 14:23
-
-
Save thomas-maschler/5aedd2477d8bdd6367ee345ad8092abb to your computer and use it in GitHub Desktop.
Get S3 bucket content
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
call from cmd line