Amazon S3 Aws - Generate unsigned object download URLs
This python code generates unsigned URL to download a public file from Amazon S3 storage.
Note that unsigned URL can be generated for object with public acl.
post this code
# Create an unsigned download URL for hello.txt.
# file hello.txt is public by setting its ACL
# Get hello.txt file key from bucket
hello_key = bucket.get_key('hello.txt')
# Create the unsigned URL
hello_url = hello_key.generate_url(0, query_auth=False, force_http=True)
If you want to be updated about similar snippets,
and follow our Channels