[Tutor] Please help!!

Bernd Prager bernd at prager.ws
Sat May 20 02:33:26 CEST 2006


Hey Matata,

>From the website  http://www.boddie.org.uk/python/HTML.html:

import urllib
# Get a file-like object for the Python Web site's home page.
f = urllib.urlopen("http://www.python.org")
# Read from the object, storing the page's contents in 's'.
s = f.read()
f.close()


Hope this helps,
-- Bernd

MATATA EMMANUEL wrote:
>
> 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 at python.org
> http://mail.python.org/mailman/listinfo/tutor
>   



More information about the Tutor mailing list