Deprecated and no longer updated, use photoSync instead.
Python Flickr photo synchronization using OAuth
- OAuth sign in
- Download photos to local folders accoding to the Flickr albums
- Upload local photos which haven't been yet uploaded to respective albums
- Delete photos which are not present on your hard drive
- Synchronize all your Flickr photos with your local folder (both ways)
-
In flickSync/__init__.py set:
- __logLevel__ to 10, 20, 40 or 50 in order to see DEBUG, INFO, WARNING, ERROR or CRITICAL messages in log file
- __exclude__ to list of folders which should be ignored (thumbs etc.)
- __callback__ to URL which is called when OAuth verifier requested
- You can also set key and secret if you want to use your own app (get a key)
-
Install the package
$ python setup.py install
Requires requests library and Python v3.+
Don't worry, this package as it is CANNOT delete your local photos. But it CAN delete your photos uploded to Flickr. Keep that in mind before you recklessly try it.
For the most common usage is the app.py file located in the bin folder. This script can synchronize all your photos from particular folder (and its subfolders) to Flickr. You can choose if you want to upload photos only, download them only, or if you want to combine upload, download or even deletion to truly sync the photos.
$ python /path/to/app.py -f "/path/to/photo/folder/" -s -d -u
# -s (downloads all the photos which are not in /path/to/photo/folder/ from Flickr)
# -d (DELETES ALL THE PHOTOS which are not in /path/to/photo/folder/ from Flickr)
# -u (uploads all the photos which are not on Flickr from /path/to/photo/folder/)
You don't need to modify the app.py file. All you need is to use any command similar to the one in run.sh file in bin folder or you can schedule periodical inicialization (in case you forget to sync it manually).
Sorry, work in progress :(