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:
- http://flickr.ben-ward.co.uk/sets/feed/72157594435188323/40
- http://flickr.ben-ward.co.uk/sets/feed/72157594435188323/25/asc
- http://flickr.ben-ward.co.uk/sets/feed/72157594435188323/25/desc
Hopefully this will useful, perhaps especially to those using Flickr in Pipes.
Links
To share this entry, or reference it in commentary of your own, link to the following:
- Permalink: https://benward.uk/blog/flickr-photoset-feeds
- Shortlink: https://bnwrd.me/1XfQjt
You can file issues or provide corrections: View Source on Github. Contributor credits.
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.
Ahhh…Flickr Feeds….(the additional segments you mention make sense and are useful to know!) Nice one Ben.
Thaks!
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!
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.
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?
GREAT STUFF! I’d like to see how you got that to work.. been working on this exact thing.