Photo Drop creates a cron job that checks on your directory every one minute. If it detects anything with the extension .jpg, .jpeg, .png or .gif, it will upload it to your google photos account and DELETE IT.
I wrote this to be a quick and easy way to get photos from my macbook (mostly memes I save from reddit) into Google Photos. Uploading and then deleting them is the use case I was trying to solve for, and keeping them around would keeping an index and adding some complex syncing logic. If you want a full service sync solution, use dropbox...
Well it's open source and the code is pretty simple. Feel free to dig into it yourself.
- Clone the repo
- Run
pip intall -r google_photo_drop/requirements.txt
- Run
python google_photo_drop/setup.py
(requires python >=3.7) - When prompted, give the app permission to create the cron job
- When prompted, log in with Google
- When prompted, enter a default location for your folder
- IF YOU ARE ON MAC OS CATALINA: for most folder locations (including
~/Desktop/*
), you will need to give cron full disk access, which is annoying. Sorry, but Apple hates power users... - Go to
System Preferences > Security & Privacy > Privacy > Full Disk Access
- Click the padlock to make a change
- Hit the
+
button - Hit
⌘ + ⇧ + g
(command + shift + g) and enter/user/sbin
- Select
cron
and then clickOpen