Was this not of any use? http://www.boddie.org.uk/python/HTML.html
I think, since HTML is a sub-set of XML, any XML parser could be adapted to do this... I doubt there's an HTML-specific version, but I would imagine you could wrap any XML parser, or really, create your own that derives from the XML-parser-class... On Sat, Mar 29, 2008 at 6:09 PM, Sam the Cat <[EMAIL PROTECTED]> 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://mail.python.org/mailman/listinfo/python-list >
-- http://mail.python.org/mailman/listinfo/python-list