Parsing HTML?

Benjamin benash at gmail.com
Sat Apr 26 17:23:39 EDT 2008


On Apr 3, 9:10 pm, 7stud <bbxx789_0... at yahoo.com> wrote:
> On Apr 3, 12:39 am, ben... at gmail.com wrote:
>
> > BeautifulSoup does what I need it to.  Though, I was hoping to find
> > something that would let me work with the DOM the way JavaScript can
> > work with web browsers' implementations of the DOM.  Specifically, I'd
> > like to be able to access the innerHTML element of a DOM element.
> > Python's built-in HTMLParser is SAX-based, so I don't want to use
> > that, and the minidom doesn't appear to implement this part of the
> > DOM.
>
> innerHTML has never been part of the DOM.  It is however a defacto
> browser standard.  That's probably why you aren't having any luck
> using a python module that implements the DOM.

That makes sense.



More information about the Python-list mailing list