Grab Flickr Tags and Comments With Fleakr
I just pushed out version 0.4.3 of the Fleakr gem that provides support for retrieving tags and comments for users, photos, and photosets. These are non-authenticated methods, so all you need is your API key:
Fleakr.api_key = 'your_api_key'
Once that's set, you can retrieve tags for users and photos:
user = Fleakr.user('teamviget') user.tags.first.value user.sets.first.photos.first.tags.first.value
Given a single tag, you can also retrieve a list of related tags:
user.tags.first.related.first
Tags associated with a photo have more information associated to them - see the documentation for what's available. Comments have no such limitation and are available for both sets and individual photos:
user = Fleakr.user('the decapitator') user.sets.first.comments user.photos.first.comments
Give it a try for yourself - check out the docs or send me an email if you get stuck. Enjoy
