I need help on this script. I'm trying to download zip file from the web and store it to my local drive: It is printing info, but doesn't download any thing. Can anyone assist here?
import urllib
import sys
# Get a file-like object from the web and store it locally.
url = ""http://www.esri.com">"
f = urllib.urlopen(url)
# connect to the remote
try:
remote = urllib.urlopen(url)
except:
print "Connot open URL"
sys.exit()
# Read from the object, storing the page's contents in 's' --> want to download parcels.zip.
s = f.read(Parcels.zip)
m = "D\\Temp\\file"
print remote.info()
m = urllib.urlretrieve
print "Download Done"
f.close()
Thanks
_______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor