Musicmobs Stats/Info Box
Musicmobs Stats/Info Box
2005-12-19 10:24:06 by Andrew Hitchcock G+
Yesterday, on the Musicmobs mailing list, Jerry asked if Musicmobs had one of those little box things that could be put on the side of a blog to show that user's music stats. It didn't, so I thought about it briefly and decided I'd hack one together after I worked (work where I get paid) and ate. Some of my other scripts that manipulate Musicmobs data (like the user clouds) use horrible, horrible hacks to get the data out of the XML format. I'm convinced the CS department would kick me out if they saw what my code was doing (although, my version was probably pretty fast because it didn't convert the XML data at it all, it just treated it like a text file). After checking out my options when using perl, I decided on XML::DOM; I'm familiar with that model from my work with Javascript. After a few problems with escape characters, I got it working. Now you can add a Musicmobs box to your blog or website. If you have any feature requests, just send me an e-mail.
Creative Commons License
This work is licensed under a Creative Commons Attribution 3.0 Unported License.