Amazon S3 console: download multiple files at once

后端 未结 15 1269
傲寒
傲寒 2021-01-31 07:00

When I log to my S3 console I am unable to download multiple selected files (the WebUI allows downloads only when one file is selected):

https://console

相关标签:
15条回答
  • 2021-01-31 07:43

    I believe it is a limitation of the AWS console web interface, having tried (and failed) to do this myself.

    Alternatively, perhaps use a 3rd party S3 browser client such as http://s3browser.com/

    0 讨论(0)
  • 2021-01-31 07:46

    Selecting a bunch of files and clicking Actions->Open opened each in a browser tab, and they immediately started to download (6 at a time).

    0 讨论(0)
  • 2021-01-31 07:46

    import os import boto3 import json

    s3 = boto3.resource('s3', aws_access_key_id="AKIAxxxxxxxxxxxxJWB", aws_secret_access_key="LV0+vsaxxxxxxxxxxxxxxxxxxxxxry0/LjxZkN") my_bucket = s3.Bucket('s3testing')

    download file into current directory

    for s3_object in my_bucket.objects.all(): # Need to split s3_object.key into path and file name, else it will give error file not found. path, filename = os.path.split(s3_object.key) my_bucket.download_file(s3_object.key, filename)

    0 讨论(0)
提交回复
热议问题