Back up Flickr photos on Amazon S3
If you choose to use a virtual environment to run your script, here is how you do it.
virtualenv -p python3 venvAccess the virtual env with:
source ./venv/bin/activateFrom there you can execute the script.
Leave the virtual env with:
deactivateFrom with the virtual env, execute the following to install the dependencies:
pip3 install -r requirements.txtAWS_ACCESS_KEY_ID === The access key for your AWS account with the S3 bucket (OPTIONAL)
AWS_SECRET_ACCESS_KEY === The secret key for your AWS account (OPTIONAL)
FLICKR_BUCKET === Target AWS S3 bucket name
FLICKR_KEY === Flickr API key
FLICKR_SECRET === Flickr API secret
FLICKR_URL === The root Flickr URL to your photos
S3_PATH === The path (prefix) for the S3 keys for the photos
S3_REGION === AWS region where the S3 bucket resides
S3_STORAGE_CLASS === AWS S3 storage class (DEFAULT: STANDARD_IA; CHOICES: STANDARD|REDUCED_REDUNDANCY|STANDARD_IA|ONEZONE_IA|INTELLIGENT_TIERING|GLACIER|DEEP_ARCHIVE)
If AWS cli is installed and configured, you may not need to specify the environment variables necessary for your AWS credentials, AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY. See configure credentials in boto3's documentation. There are many ways to specify your AWS credentials. Pick the one that is best for you.