Are there any currently maintained Python packages for the Flickr API? I installed the
flickr-api package from PyPI, but am not sure it’s active. A simple attempt to iterate over my own private photos seems not to work as expected. I opened a GitHub issue about it. Here’s the example I ran:
import flickr_api # these are the key and secret for my account, associated with firstname.lastname@example.org api_key = 'blah blah blah' api_secret = 'blah blah blah' flickr_api.set_keys(api_key=api_key, api_secret=api_secret) # this correctly returns me, user "smontanaro" user = flickr_api.Person.findByEmail("email@example.com") photos = user.getPhotos(privacy_filter=5) for photo in photos: print(photo.id, photo.ispublic)
It seems to run without error, but the photos returned are public, despite the
privacy_filter=5 parameter. I spot checked a couple photos manually. They do appear to be public, not private as I’d expected.
This package seems straightforward to use, but I wonder if there are other Python packages people use to access Flickr, particularly their own photos.