ot;print remote.info()m = urllib.urlretrieve ==> Not sure here print "Content:"print sprint "Download Done"f.close()
Matt
From: Danny Yoo <[EMAIL PROTECTED]>To: MATATA EMMANUEL <[EMAIL PROTECTED]>CC: Tutor@python.orgSubject: Re: [Tutor] Download file from
quot;Connot open URL" sys.exit()# Read from the object, storing the page's contents in 's'.s = f.read()m = "D\\Temp\\file"print remote.info()m = urllib.urlretrieveprint "Content:"print sprint "Download Done"f.close()
From: "Alan Gauld"
most doing it but I don't know how to correct so far.
--Matt:)
From: Danny Yoo <[EMAIL PROTECTED]>To: MATATA EMMANUEL <[EMAIL PROTECTED]>CC: Tutor@python.orgSubject: Re: [Tutor] Download file from the web and store it locally.Date: Mon, 22 May 2006 11:29:50 -0700 (PDT)
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 urllibimport sys# Get a file-like object from the web and store it locally.url = ""http://www.esri.com">"f =
Thanks Kelly.
The second version works.
print "Total trip cost is US$", float(distance) /(float(mpg) * float(galon_price))Matt
From: Kelly Vincent <[EMAIL PROTECTED]>To: MATATA EMMANUEL <[EMAIL PROTECTED]>, Tutor@python.orgSubject: Re: [Tutor] User inputDate: Mon
Hi there,
Can anyone tell me how I'm having trouble executing this piece of code:
mpg = raw_input (" Enter your mileage:")distance = raw_input ("Enter your distance:")galon_price = raw_input ("Enter you cost per gallon:")make = "Honda"model = "Accord"##print make, model, "mileage is", mpg, "miles
Alan,
Man! I was thinking that it was simple. This is a little bit hard but will try to make sense of it as I can.
Thank you for your assistance. I'm glad you're up there to assist.
Matt
From: "Alan Gauld" <[EMAIL PROTECTED]>To: "MATATA EMMANUEL"
Hi there,
I'm tasked to write a Paython script which is supposed to hit a web site and download a shapefile from that web site. I don't have any clue and would like your help. I use 9.x if this matter.
Thank you.
Matt.
___
Tutor maillist - Tutor@py
Hi there,
I don't have a lot of experience programming and have to be writing Python scripts for ArcGIS 9.X. and would like to know if someone up there is working in this area so that I can be asking for some advises and help.
Tkx
Mat
___
Tutor maillist