how to download from online radios/streams
December 23rd, 2009I’m wondering all the time when I’m listening to an online stream (like play.fm, soundcloud, ….) why don’t they allow users to download those mixes (maybe I want to listen to that mix on my iPod when I’m travelling).
The thing is, that you download the stream while you’re listening to it. If you didn’t do that you couldn’t listen to it:)) There’s a method which _might_ work to download from these kind of online streams. The only thing you need is a browser with which you can check what HTTP requests are sent (e.g. Firefox with Firebug) and a download utility which you can tell an input URL and an output file (like wget).
The trick is simple. Open the stream in your web browser while listing the HTTP GET or POST requests. Once you start playing the stream, there should be an HTTP request to the server which tells the browser which stream to play. In Firebug the size of each response is shown, so you can easily find the needle in the haystack (as the different elements of the page are just in KBs but streams are usually couple of MBs). So if you copy the URL of that HTTP request, you _might have_ the direct URL of the stream, and you _might be able to_ ‘download’ it with a download manager (like wget http://dsaihflhe.com/soidghfisruhglsa -O myoutputfile.mp3).
That’s all! :))
Note: I have never tried this, so the steps above work in theory.

