Created
September 27, 2014 07:27
-
-
Save k1000/78dd4ed80567d1558f07 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
conn = boto.connect_s3(awsAccessKey, awsSecret) | |
# Get bucket instance. | |
bucket = conn.get_bucket(bktName) | |
fileKey = bucket.get_key(fileKey) | |
url = fileKey.generate_url(expires_in=None, query_auth=True, force_http=True) | |
print url |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment