On 30 Mar, 01:09, "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.
You could try libxml2dom which has an HTML parsing mode (like lxml and other solutions based on libxml2): http://www.python.org/pypi/libxml2dom It attempts to provide a DOM API very much like that used by JavaScript implementations. Paul -- http://mail.python.org/mailman/listinfo/python-list