Hi,
Amazingly, in bash, you can do
$ curl http://mp3.streampower.be/radio1-high.mp3 > test.mp3
with an audiostream and then ^C out, and you will have a working mp3 file, leading me to believe I could have this automated in python, but I can't find how.
If i just do
file('python.mp3', 'w').write(urllib2.urlopen("http://mp3.streampower.be/radio1-high.mp3").read())
it doesn't even read the stream.
Is there something like BufferedInputReader from java in python or can anyone give me some pointers as to how I would go about doing this? Reading an audiostream and getting it to stop reading after a while.
Thanks