html DOM
David
wizzardx at gmail.com
Sun Mar 30 01:16:01 EDT 2008
On Sun, Mar 30, 2008 at 1:09 AM, 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
>
Have you looked at Beautiful Soup?
http://www.crummy.com/software/BeautifulSoup/
David.
More information about the Python-list
mailing list