read a web page using python
Lawrence Oluyede
raims at dot.com
Sat Mar 17 14:20:40 EDT 2007
<myTesterFrench at gmail.com> wrote:
> Kindly, could you someone tell me how to read a page(any web site)
> using Python, what method to be used ?
import urllib2
res = urllib2.urlopen(url)
page = res.read()
See: http://www.voidspace.org.uk/python/articles/urllib2.shtml
--
Lawrence, oluyede.org - neropercaso.it
"It is difficult to get a man to understand
something when his salary depends on not
understanding it" - Upton Sinclair
More information about the Python-list
mailing list