Last.fm Tumblr Integration
I felt like playing around with some code today, so I put my Last.fm recent tracks into Tumblr.
It was pretty easy and quite fun. Since JavaScript can’t read XML (without doing a cross-domain Ajax call, which doesn’t quite exist yet), I used Yahoo! Pipes to transform the XML into JSON.
Then, this page calls the Yahoo! Pipe and injects the most recently played track on the top of the page.
Edit: Looks like Yahoo! Pipes has a one hour cache on all feeds… lame. I am currently too lazy to set up workarounds like DNS forwarding -> JavaScript XML. I guess I’ll have to change it to “Listened to an hour ago”.