Manipulate HTML documents via data structure

David Fraser davidf at
Tue Oct 5 08:35:09 CEST 2004

C. Barnes wrote:
> Python provides HTML parsing through the
> HTMLParser and htmllib modules.
> For my application, I needed to search through
> an HTML document in a nonlinear fashion and
> dynamically change parts of the document.  The
> most logical way to do this is to translate HTML
> back and forth to a data structure.
> I wrote a module called htmldata, available from:

Just wondering if you've seen BeautifulSoup?
It seems quite similar to what you're doing although I haven't looked in 


More information about the Python-list mailing list