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:Mark McLaughlin posted a photo:Mark McLaughlin posted a photo:Mark McLaughlin posted a video:Mark McLaughlin posted a photo:Mark McLaughlin posted a photo:A brisk walk across Woodham Common before the light started to fail.Mark McLaughlin posted a photo:Don't work with children or animals - unless they've had a chicken dinner and there's an open fire nearby.Mark McLaughlin posted a photo:There's a certain look in an animals eyes that says "It's time to go now."Mark McLaughlin posted a photo:I'm always a sucker for neon lights.