Undercrank

Icon

Yahoo! Web Services news over Atom

Well, like a dork, I didn’t actually realise that Yahoo! News already offered up the whole RSS feeds for news keywords thing when I started. However, the fun thing of course with the API that Yahoo! are offering is that it doesn’t take a whole lot of time to create another script that dishes out the same thing in another ‘rival’ syndication format:

Atom enabled Yahoo! web feeds examples

The syntax of the URL is almost identical to that of the RSS feed http://undercrank.com/yahoo/atom/news/«keywords» (the equivalent RSS version would be http://undercrank.com/yahoo/rss/news/«keywords». This is a slight change to the previous syntax posted, but the old format is still perfectly valid and won’t break for those already using it.

As before, the feed validates nicely has good friendly HTTP caching facilities built in, as as a special bonus it conforms to the Tag URI recommendations pretty well too.

Use is made of the extended Author tags for each article, and support for multiple languages for each entry is available – although it appears that Yahoo! returns “en” as the language for everything, even, if it’s not.

Finally, I’ll post up the source once I’m convinced I’m doing everything the ‘right’ way.

Category: Scripting

Tagged: , , , , , , , ,

Leave a Reply

Disclaimer

The opinions expressed on Undercrank.com are personal and do not represent Skype or any other organisation I belong to.

Flickr

Mark McLaughlin posted a photo:One of the more curious sights at Macworld - it takes a line input and attaches to a helmet, sending vibrations through that so that you get music 'in your head' but still leave your ears exposed.Mark McLaughlin posted a photo:He also wishes you a Happy President's Day, too.Mark McLaughlin posted a photo:Outside the App Planet (Hall 7) at Mobile World Congress 2010Mark McLaughlin posted a photo:Stunning light fitting inside "El Principal" restaurant in Barcelona.Mark McLaughlin posted a photo:I really actually thought I'd seen it all - but the award for most nerdy number plate ever goes to...Mark McLaughlin posted a photo:Mark McLaughlin posted a photo:Mark McLaughlin posted a photo:Mark McLaughlin posted a video: