Incoming!

The Upcoming News Blog

+Add a News Post

RSS Events in Chronological Order

Over the past few years, we keep hearing from people trying to paste RSS feeds into XML parsers that they want to get events back in chronological order.

So, we've answered your desire, but please, please, PLEASE be aware that if you use this parameter, what you get from our feed will frequently NOT WORK IN RSS READERS for very, very, very clear reasons. I can explain why again, but I hope everyone here is aware of them and just wants the events to be sorted for uses other than feed readers.

In other words, this is an unsupported parameter, and if you write to us asking for help getting it to work in your feed reader, there likely won't be anything we can do about it for you.

If you would like to make the XML give you events that would normally appear in ascending start date order, then you can pass along ?sort=start-date-asc to the normal RSS URL. Then you can parse the XML as if it were a chronological list of events. They will disappear from your feed whenever their start date is in the past.

If you want more flexibility than that, you should really be using the API (http://upcoming.yahoo.com/services/api/), as you should not mistake RSS for a flexible XML API, because it's not. =P Now that i've given you fair warning, feel free to proceed...

(Suggestion answered here.)

Comments
Happy.
Posted 38 weeks ago
thank you!
Posted 36 weeks ago
FWIW, you can do this with Yahoo! Pipes by passing the feed through the Sort operator and sorting on xCal.dtstart
Posted 35 weeks ago
bluesmoon: no, you can't. If you sort by published date (the default), you'll get the last 25 published items in the feed. This behaves like a blog, which is all that readers are equipped to deal with. If you sort by event start date ascending, you'll get the next 25 upcoming events.

If you get the original default feed and resort it, there's no guarantee that those are in fact the next 25 upcoming events. Get it?

This kind of stuff is very tricky, so don't worry if you run into problems when trying to use anyone's (not only ours) RSS feeds that contain events inside. There are actually two relevant date/time points per event *at the least*, and RSS as a format only can handle one at a time.
Posted 35 weeks ago
getluky:

you are wrong. bluesmoon is correct. tested and confirmed with pipes.
Posted 19 weeks ago
riverwest-network: Gordon's correct. This will only work for feeds with less than 25 events. If you only have 10 events in your feed, this will order correctly. But if you're dealing with a feed for an entire metro, the only 25 events in the feed will be the ones that were most recently added to Upcoming. Sorting those 25 by date will work, but you'll see that they're spanning dates all over the calendar and not the next 25 events coming up today and tomorrow, as you might expect.
Posted 19 weeks ago
Sign Up or Sign In to comment on this news post.