简体   繁体   中英

Python - How to Download Images from Amazon S3

I need to download images that are uploaded by https://webapp.spypoint.com . These images are saved in Amazon S3. The url for this image is something like this as: https://s3.amazonaws.com/spypoint/1111/2222/3333/img.jpg

I have id and password to log in https://webapp.spypoint.com . My goal is to download images from Amazon S3 directly using boto3.

I researched about it and all information was about downloading images from Amazon S3 bucket owned by myself. For my case, the Amazon S3 storage/bucket is owned by https://webapp.spypoint.com .

Without any knowledge on how the image is served on the website you meintioned It would be hard to answer.

However, generally I belive that:

1/ The bucket do not enable public object listing

2/ The bucket do not enable public object getting

3/ The images you see is displayed on your screen with a signed url ( check your network in the browser console )

If that is the case, you will only be able to get directly get the S3 URLs ( the download links ) that is explicitly provided (to you ) by the website you are targeting.

You need to look into APIs that website provide or do HTML parsing

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM