pythonstreamaudio-streaminginternet-radio

Record streaming and saving internet radio in python


I am looking for a python snippet to read an internet radio stream(.asx, .pls etc) and save it to a file.

The final project is cron'ed script that will record an hour or two of internet radio and then transfer it to my phone for playback during my commute. (3g is kind of spotty along my commute)

any snippits or pointers are welcome.


Solution

  • So after tinkering and playing with it Ive found Streamripper to work best. This is the command i use

    streamripper http://yp.shoutcast.com/sbin/tunein-station.pls?id=1377200 -d ./streams -l 10800 -a tb$FNAME