<html><div style='background-color:'><DIV class=RTE>
<P><BR>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?</P>
<P>import urllib<BR>import sys<BR># Get a file-like object from the web and store it locally.<BR>url = "http://www.co.rowan.nc.us/enviroservs/downloads.htm<A href="http://www.esri.com"></A>"<BR>f = urllib.urlopen(url)<BR># connect to the remote<BR>try:<BR> remote = urllib.urlopen(url)<BR>except:<BR> print "Connot open URL"<BR> sys.exit()<BR># Read from the object, storing the page's contents in 's' --> want to download parcels.zip.<BR>s = f.read(Parcels.zip)<BR>m = "D\\Temp\\file"<BR>print remote.info()<BR>m = urllib.urlretrieve<BR>print "Download Done"<BR>f.close()<BR></P>
<P>Thanks</P>
<DIV></DIV><FONT color=#000000></DIV>
<DIV></DIV></FONT></div></html>