Obtaining Webpage Source with Python

Paul Rubin http
Thu Jun 24 01:12:34 EDT 2004


Paul Rubin <http://phr.cx@NOSPAM.invalid> writes:
> import urllib
> pyPage = urllib.urlopen('http://www.python.org/index.html',r).read()

oops:

import urllib
pyPage = urllib.urlopen('http://www.python.org/index.html').read()

i.e. omit the 'r' argument to urlib.urlopen.



More information about the Python-list mailing list