<html><div style='background-color:'><DIV class=RTE>
<P><BR>I need help on this script. I'm trying to download&nbsp;zip file&nbsp;from the web and&nbsp;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>&nbsp;&nbsp;&nbsp; remote = urllib.urlopen(url)<BR>except:<BR>&nbsp;&nbsp;&nbsp; print "Connot open URL"<BR>&nbsp;&nbsp;&nbsp; sys.exit()<BR># Read from the object, storing the page's contents in 's' --&gt; 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>