How to save web pages for offline reading?

Will Stuyvesant hwlgw at hotmail.com
Mon Jul 21 11:31:13 CEST 2003


I am trying to download pages from Python, for offline reading.  This
to save telephone costs :-)

If a page contains something like
<link rel='stylesheet' href='../pythonware.css' type='text/css' />
and I use fp=urllib.urlopen(...) and then fp.read(), I get the HTML
but not the CSS.  As a result the page looks bad when reading offline.
 How to solve this?  Also the .GIF's in a page would be nice, but this
is less important and also would take more time to download.




More information about the Python-list mailing list