htmllib question
Doug Fort
dougfort at downright.com
Wed Jun 6 16:45:31 EDT 2001
Content-Transfer-Encoding: 8Bit
Rob Deker wrote:
<snip>
>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.
<snip>
>
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 http://www.stressmy.com, FWIW it may
be too incoherrent to be of use to you.
--
Doug Fort <dougfort at downright.com>
Senior Meat Manager
Downright Software LLC
http://www.downright.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: filteringparser.py
Type: text/x-java
Size: 38461 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/20010606/9aad55a2/attachment.java>
More information about the Python-list
mailing list