Obtaining Webpage Source with Python

Ryan Kaskel ryan at ryankaskel.com
Thu Jun 24 01:03:04 EDT 2004


How can I obtain the source of a remote webpage (e.g.
http://www.python.org/index.html) using Python?

Something like:

pyPage = open('http://www.python.org/index.html',r).read()

Obviously that won't work but how can I do something to that effect?
Thanks,
Ryan Kaskel

--I posed this before but it seems it is not showing up...



More information about the Python-list mailing list