Ben Ward

RSS Feeds of Flickr Photo-sets

. Updated: .

By design, Flickr does not provide XML feeds of photosets. Photosets can be non-chronological, so a feed doesn’t always make sense.

That said, oftentimes a photoset is chronological and a feed would be a useful. My Abridged set works this way.

At Hack Day London I put together a little script that will convert a set into a feed, and after gigantic delay, I’ve finally documented it and put it live at Flickr.Ben-Ward.co.uk.

Fuller instructions are provided with the hack, but in short you can pass in a Flickr set ID and out will come an XML feed of the 20 most recent pictures. You can pass extra parameters in the URL to change the number of pictures and the sort order.

For example, to produce a feed of 20 items from the Abridged set: http://flickr.ben-ward.co.uk/sets/feed/72157594435188323/

You can use additional segments of the URL to alter the number of feed items and the sort order, for example:

Hopefully this will useful, perhaps especially to those using Flickr in Pipes.

Comments

Previously, I hosted responses and commentary from readers directly on this site, but have decided not to any more. All previous comments and pingbacks are included here, but to post further responses, please refer me to a post on your own blog or other network. See instructions and recommendations of ways to do this.

  1. Ben,

    I’ve just found a small issue with your feed generator (which incidentally is excellent thanks for putting it together); I had an ampersand in a couple of my photo’s titles. These where not being HTML encoded in the feed, which caused firefox and IE to choke.

    I fixed it my end by changing the titles, but it’s something you might want to look at.

    I can now try and sort out my pipe for my facebook feed. Good man!

  2. Ben

    Thanks for the bug report, Mark. I’ve updated the feed generator to encode HTML special characters. Hopefully that will resolve the problem you were having.

  3. Ben – This is excellent! I’ve been hunting for something like this. I’d like to take it a step further and have the feed import into my SlideShowPro (http://slideshowpro.net) player. When I try doing it from your script, it errors out because it requires a crossdomain.xml file on your side. Is it possible for you to provide the script to place on my server so I can avoid this issue? Is it for sale?

You can file issues or provide corrections: View Source on Github. Contributor credits.