How can I get the content of a web site using http library

Thorsten Kampe thorsten at thorstenkampe.de
Thu Mar 29 22:07:27 CEST 2007


* silverburgh.meryl at gmail.com (29 Mar 2007 12:18:19 -0700)
> I am trying to get the content of a web site like this:
> But my question is how can I do a 'GET' request without putting the '/
> index.html''

import urllib
print urllib.urlopen('http://www.yahoo.com/').read()



More information about the Python-list mailing list