htmllib question

Doug Fort dougfort at
Wed Jun 6 22:45:31 CEST 2001

Content-Transfer-Encoding: 8Bit

Rob Deker wrote:


>Is there an easy way to

> modify the HTML one is parsing while it's being parsed? For example,

> if I wanted to change absolute links to relative links.



We modify links in our website load testing application.  We use sgmllib to 

process the html, it's much more flexible than htmllib.  I

f you're interested in that sort of thing, I strongly recommend the new 

'Python Standard Library' by Frederik Lundh from O'Reilly.  It has a high 

signal to noise ratio with many examples, including sgmllib and htmllib.

I've attached one of our parsers from, FWIW it may 

be too incoherrent to be of use to you. 


Doug Fort <dougfort at>

Senior Meat Manager

Downright Software LLC
-------------- next part --------------
A non-text attachment was scrubbed...
Type: text/x-java
Size: 38461 bytes
Desc: not available
URL: <>

More information about the Python-list mailing list