Lyrics of the day

February 3rd, 2010 by ae

I’ve been wanting to play with the new version of Kohana (K3) for a while. Its quite different to the 2.x branches and there a few things with it that I’m not sure I really like, but I’ll reserve judgment till I’ve played with it a bit more.

Anyway, to try and do something somewhat interesting I’d thought I’d hook it up to the twitter and last.fm api’s tonight over too many gin and tonics. So I created http://lyricsoftheday.info and http://albumoftheday.info (which is parked with lyricsoftheday).

All they do is search for the #lyricsoftheday and #albumoftheday hashtags on twitter and return the results. I’m trying to get the album of the day to grab the album cover from last.fm but this is proving a bit harder as I need to provide both the album name and artist to the api, which is sometimes hard to determine (check http://albumoftheday.info and you will see what I mean).

The styling is GHASTLY. Yes.

The code is up on github at http://github.com/ae0000/lyricsoftheday if anyone is interested or wants to style it up.

Next step is to try and wean the crappy lyrics out…. then create a cronjob to submit tom waits lyrics every minute.

Or perhaps even better, fixing peoples ill-informed tweets for them

eg. (using the currently number one tweet)
Someone: I will never know cause you will never show. #lyricsoftheday

“@Someone: ” + insert_random_tom_waits_lyric(); +” #FTFY #lyricsoftheday”

No Comments » Comments to this post

Leave a Reply