DOM and HTML

Larry Bates larry.bates at websafe.com
Sun Apr 2 15:03:12 EDT 2006


robert.differentone at gmail.com wrote:
> Hi All,
> 
>           I am looking for any Python library which can help to get DOM
> tree from HTML.  Is there any way to access HTML DOM, just like
> accessing it using javascript.
> 
> Any kind of help is appreciated.
> 
> Thanks.
> R
> 
Since the browser can't execute anything except Javascript, you
can't get to/manipulate the DOM with anything but Javascript code.
There have been attempts at getting a browser that can execute
Python code, but I don't think they ever really got anywhere.

-Larry



More information about the Python-list mailing list