The purpose of this project is to help upload all image files inside a folder and all its sub-directories to Google photos. This was particularly useful for me when I was transferring my images from one account to another on Google Photos
- Download
client_secret.json
in thesrc
folder.
- Go to the Google API Console.
- From the menu bar, select a project or create a new project.
- To open the Google API Library, from the Navigation menu, select APIs & Services > Library.
- Search for "Google Photos Library API". Select the correct result and click Enable.
- Under Credentials for your project, create OAuth Client ID for other and open the newly created credentials link
- Download JSON as
client_secret.json
in the src folder
$ cd src
$ python3 main.py [folder-path]
- Handles abrupt termination on a sub-directory level. It means that if the program terminates, it restarts uploads from the last directory it was uploading.
- Sync from Google photos to make sure that same photos are not uploaded twice
Sugesstions and contributions are always welcome. Please open an issue or submit a PR.