Undercrank

Scripting

March 27, 2005

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.

More of the same RSS

Yahoo! Web Services news over RSS

I've put together a small project that will create an dynamic RSS 2.0 feed based on the Yahoo! News Search hooks.

Despamming Shortstat (Part 2)

Further to my earlier post about Despamming Shortstat, I've made a small update to the code that has a few improvements on the original.

Importing CSV files to SQLite

"SQLite is different from most other SQL database engines in that its primary design goal is to be simple". Which isn't strictly true...

Despamming Shortstat

I've been using Shaun Inman's Shortstat package for a short while now as my main source of web statistics. However, it's fairly susceptible to the, er, 'innovation' known as referer spam - so here's some code that use's Jay Allen's MT-Blacklist master list to clean it up.

Trackbacks

Trackback URL for this entry is:

Post a comment

Remember personal info?