Downloading files off Interet
Egor Bolonev
ebolonev at punkass.com
Tue Jan 6 03:00:34 EST 2004
Hello, Blaktyger!
You wrote on 5 Jan 2004 23:32:53 -0800:
B> I would like to download some mp3 files from a web site. There is to
B> much of them and I had the idea of writing a script to do it for me.
B> Code:
B> import string
B> import urllib
B> f = urllib.urlopen(""" http://www.somemp3site.com/somemp3.com""")
B> fic=open('mp3file.mp3','w')
B> fic.write(f.read())
B> fic.close()
B> f.close()
B> I ran the program and the file is not playing.
B> Can someone help me?
B> Thanks
may be devas esti wb
fic=open('mp3file.mp3','wb')
With best regards, Egor Bolonev. E-mail: ebolonev at rin.ru
More information about the Python-list
mailing list