O'Reilly logo

Flickr Hacks by Jim Bumgardner, Paul Bausch

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Hack #20. Build a Custom Flickr Feed

Subscribe to any data available at Flickr by using the Flickr API to build a custom RSS feed with Flickr photos.

If you already use an RSS newsreader, you know how convenient it is to have information come to you via RSS rather than seeking it out. You can have Flickr content delivered to you via a news feed [Hack #17] , and you can also use Flickr RSS feeds to publish photos on other web sites [Hack #1] . The RSS format is so popular that you'll find many existing tools that can consume the format.

Custom Feeds

Flickr offers a number of news feeds for most of the data you'll find on the site, but you might run into times when you want to build a custom RSS feed that Flickr doesn't provide. Here's a quick look at some situations where you might want a custom feed:

To view a different image size

Flickr offers small thumbnails in its news feeds—if you'd rather see large images or the smaller square thumbnails in your newsreader, you can build your own feed.

To add extended data to a feed

If you're interested in the extended camera data [Hack #3] that is stored with some photos, you might want a feed that includes this data (it's not available in the default Flickr feeds). You can also add bits of information, such as member icons, license information, and details about the sets to which a photo belongs.

To control the number of items

Flickr provides the 10 most recent photos in its photo-related news feeds, but in a custom feed you can include any number ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required