html DOM

Michael Wieher michael.wieher at gmail.com
Sat Mar 29 23:19:08 EDT 2008


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 <sam_spam_cat at verizon.net>
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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20080329/e453170c/attachment-0001.html>


More information about the Python-list mailing list