Sam the Cat wrote:
> Is there a package that would allow me the same or similar functionality
> for modifying html code via the DOM model as I have in JavaScript ?  I'd
> like to parse an html file, then modify it and save the result.  I am
> not trying to do this online, rather I would like to do this on a batch
> of files stored on my hard drive.  I have found several packages that
> allow me to parse and dissect html but none that allow me to modify the
> object and save the results -- perhaps I am overlooking the obvious

http://codespeak.net/lxml/lxmlhtml.html

Here are some performance comparisons of HTML parsers:

http://blog.ianbicking.org/2008/03/30/python-html-parser-performance/

Stefan
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to