download complete webpage with python
Gabriel Genellina
gagsl-py2 at yahoo.com.ar
Sat Dec 8 03:42:27 EST 2007
En Fri, 07 Dec 2007 17:58:43 -0300, yi zhang <zhang1025 at yahoo.com>
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.
--
Gabriel Genellina
More information about the Python-list
mailing list