Code written for Last.fm's 14th December 2008 Hack Day in London. It's fairly simple - start with any given song and Last Genius will create a playlist of songs that go with that initial song, and will start playing them. Only songs which are able to played all the way through by last.fm will be added to the playlist.
I wrote a blog post about Last Genius, and Last.fm mentioned Last Genius in their round-up of the Hack Day.
To start using Last Genius, drag the bookmarklet below into your browser's toolbar.
Drag this: Last Genius
Then, any time you're on a Last.fm song page that you'd like to create a Genius Playlist for, just click on the bookmarklet and magic will happen.
Just do something like the following:
git clone git://github.com/NeilCrosby/last-genius.git
cd last-genius
git submodule init
git submodule update
cd externals/curlcall
git submodule init
git submodule update
mkdir /tmp/cache