Downloading files off Interet

Blaktyger blaktyger at hotmail.com
Tue Jan 6 02:32:53 EST 2004


I would like to download some mp3 files from a web site. There is to
much of them and I had the idea of writing a script to do it for me.

Code:
import string
import urllib

f = urllib.urlopen(""" http://www.somemp3site.com/somemp3.com""")

fic=open('mp3file.mp3','w')
fic.write(f.read())
fic.close()
f.close()

I ran the program and the file is not playing.
Can someone help me?
Thanks



More information about the Python-list mailing list