[Tutor] urlopen: where are the results?

gv gv10000 at googlemail.com
Thu Mar 23 16:50:45 CET 2006

On 3/23/06, Kermit Rose <kermit at polaris.net> wrote:

> And I had not yet found out about the read function, so even if I had understood
> that urlopen returned a file ,   I still would not have know how to see the contents
> of that file.
> I will search for the read function in the tutorial.  What hints can you give me for
> finding it quickly in the tutorial?

You hardly need to read about the read function.  Just use it:

print urlopen("http://www.kermitrose.com").read()


Webfile = urlopen("http://www.kermitrose.com").read()

More information about the Tutor mailing list