If you want to play with the flickr API, you will need to request a key. There are both SOAP and REST interfaces to Flickr.
Also, there are two Python libraries that use these interfaces. (FlickrClient - micampe.it and flickr.py (James Clarke). There seems to be a basic tradeoff between the two modules: completeness of the first vs convenience of the latter. I quickly decided on the first library because the lightweight wrapper gave access to the entire API.
I will post here my little script. (It's not the most elegant solution -- but shows how one can use FlickrClient - micampe.it
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | API_KEY = 'INSERT YOUR API KEY HERE' USER_EMAIL = "INSERT EMAIL HERE" |
I will also throw in a few RESTful ways of accessing the Flickr API (substitute the appropriate parameters):
-
getting the photos from a certain photoset: http://www.flickr.com/services/rest/?method=flickr.photosets.getPhotos&api_key=YOUR_KEY&photoset_id=PHOTO_ID
-
setting permissions on a particular photo: http://www.flickr.com/services/rest/?method=flickr.photos.setPerms&api_key=YOUR_KEY&photo_id=PHOTO_ID&is_public=1&is_friend=1&is_family=1&perm_comment=1&perm_addmeta=1