Free instrumental music I download with Linux/GNU
Ok, so today I was watching some videos of Andy McKee and Andrew White on YouTube and stumbled across the CanndyRat Records website which has an amazing Radio station. Well I don’t know about you but I like my music in Amarok so I peeked in the DOM source code to see where the superb sound waves are coming from. It turns out that this is not an actual radio but a small Flash app that plays MP3’s from this XML Playlist. Having a Linux box makes my life much easier to download those songs. I thought I’d share the download steps with you:
All I care about is music, just give me the MP3 songs list already!
- Downloading the xml file:
$ wget http://www.candyrat.com/radio/radioxml.asp
--16:42:47-- http://www.candyrat.com/radio/radioxml.asp
=> `radioxml.asp'
Resolving www.candyrat.com... 68.178.170.138
Connecting to www.candyrat.com|68.178.170.138|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 20,215 (20K) [text/xml]100%[====================================>] 20,215 --.--K/s16:42:47 (316.34 KB/s) - `radioxml.asp' saved [20215/20215] - Filtering the MP3 files download links:
$ grep -i 'filename' radioxml.asp > songs.txt && sed 's/<filename>//' songs.txt > temp && sed 's/<\/filename>//' temp > songs.txt && rm -f temp - Now to download the files all you have to do is call Wget:
$ wget -i songs.txt - Enjoy!
If you don’t have UNIX, you should definitely consider it, or at least in stall some GNU tools like BASH, sed and Wget on your Windows system.
If you like the songs, please consider purchasing them. That’s it!

wget -O - http://www.candyrat.com/radio/radioxml.asp | perl -lne ‘`wget $1` if /(.+)/’
Comment by Tabooyah — November 4, 2007 @ 6:47 pm
There’s supposed to be some filename markups in there, but it looks like it got stripped.
Comment by Tabooyah — November 4, 2007 @ 6:47 pm
Damn comment scrubber ate my xml.
Comment by Tabooyah — November 4, 2007 @ 6:50 pm
Thank you! This music is so beautiful it makes me cry
Comment by Pufone — November 4, 2007 @ 7:28 pm
$ wget http://www.candyrat.com/radio/radioxml.asp
–16:42:47– http://www.candyrat.com/radio/radioxml.asp
=> `radioxml.asp’
Resolving www.candyrat.com… 68.178.170.138
Connecting to www.candyrat.com|68.178.170.138|:80… connected.
HTTP request sent, awaiting response… 200 OK
Length: 20,215 (20K) [text/xml]100%[====================================>] 20,215 –.–K/s16:42:47 (316.34 KB/s) - `radioxml.asp’ saved [20215/20215]
Comment by maksat — March 29, 2008 @ 11:58 am