working on it ...


Explore Public Snippets

Sort by

Found 1 snippet matching: amazon_amazon

    public by lbottaro @ Amazon_AWS_Python_API  5481  5  8  1

    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.
    # Create an unsigned download URL for hello.txt. 
    # Requirements:
    # 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)
    print hello_url

    List Complete ( 1 snippet total )

    Cannot find what you were looking for?
    Ask the Snip2Code Community

    • Public Snippets
    • Channels Snippets