Artificial truth

archives | latest | homepage | atom/rss/twitter

The more you see, the less you believe.

Musopen + Python = pymusopen
Wed 07 March 2012 — download


Musopen ( is a 501©(3) non-profit focused on improving access and exposure to music by creating free resources and educational materials. We provide recordings, sheet music, and textbooks to the public for free, without copyright restrictions. Put simply, our mission is to set music free.

Musopen is a great site, but it provide radio only through an awful flash player.

Flash sucks

A quick look at the source code of the page show that the player’s url is /scripts/flash/mp3_player.swf. Once we get it, flasm show us the ugly flash bytecode, who tell us that the applet get the path of the file to play on the playlist.php webpage.

Python rocks!

Some pythonic magic later, with pygst and pygobject, we’ve got a nice simple stupid python powered radio ! You can get the code here.

Sometimes, the playlist.php page returns garbage, I don't know why.