|Code to write data read from a URL to a file|
|Based on an answer on SO:|
|mp3file = urllib2.urlopen("http://www.example.com/songs/mp3.mp3")|
|with open('test.mp3', 'wb') as output:|
|data = mp3file.read(4096)|
Hello, I found your script useful, but have one question: can I use the file for post-processing? suppose I download a jpg file that I want to process with OpenCV, can I use the 'data' variable to keep working? or do I have to read it again from the downloaded file?