from urllib import urlopen url = urlopen("http://www.google.com").read()
Enjoy! On 12/8/07, Larry Bates <[EMAIL PROTECTED]> wrote: > > Gabriel Genellina wrote: > > En Fri, 07 Dec 2007 17:58:43 -0300, yi zhang <[EMAIL PROTECTED]> > > escribió: > > > >> The urllib.urlretrieve() can only download the text part of a webpage, > >> not the image associated. How can I download the whole, complete > >> webpage with python? Thanks! > > > > The images are separate from the html document. You have to parse the > > html text, find the <img> tags, and retrieve them. > > > Actually IMHO this is even more difficult than it sounds. Javascript can > change > the webpage after it loads. > > Larry > -- > http://mail.python.org/mailman/listinfo/python-list > -- http://search.goldwatches.com/?Search=Movado+Watches http://www.jewelerslounge.com http://www.goldwatches.com
-- http://mail.python.org/mailman/listinfo/python-list