We have seen how to write content into S3 in Chapter 3, Processing Data. Here we will extend that process into an interface implementation of IBlobWriter to write to S3.
Downloading and saving images to S3
Getting ready
The code example for this recipe is in the 04/06_save_image_in_s3.py file. Also ensure that you have set your AWS keys as environment variables so that Boto can authenticate the script.
How to do it
We proceed as follows:
- Run the recipe's script. It will execute the following:
# download the image
item = URLUtility(const.ApodEclipseImage())
# store...