Simple but flexible script to upload photos to Google Photos and add to a particular album. Useful if you have photos in a directory structure that you want to reflect as Google Photos albums.
Simple but flexible script to upload photos to Google Photos. Useful if you have photos in a directory structure that you want to reflect as Google Photos albums.
usage: upload.py [-h] [--auth auth_file] [--album album_name]
[--log log_file]
[photo [photo ...]]
Upload photos to Google Photos.
positional arguments:
photo filename of a photo to upload
optional arguments:
-h, --help show this help message and exit
--auth auth_file file for reading/storing user authentication tokens
--album album_name name of photo album to create (if it doesn't exist). Any
uploaded photos will be added to this album.
--log log_file name of output file for log messages
NOTE When selecting your application type in Step 4 of "Request an OAuth 2.0 client ID", please select "Other". There's also no need to carry out step 5 in that section.
YOUR_CLIENT_ID
in the client_id.json file with the provided Client ID.YOUR_CLIENT_SECRET
in the client_id.json file wiht the provided Client Secret.pip install pipenv
pipenv install
to download and install all the dependenciespipenv shell
to open a shell with all the dependencies available (you'll need to do this every time you want to run the script)python upload.py
as desired. Use python upload.py -h
to get help.