Parsing HTML?

Larry Bates larry.bates at websafe.com
Thu Apr 3 23:31:00 EDT 2008


On Wed, 2008-04-02 at 21:59 -0700, Benjamin wrote:
> I'm trying to parse an HTML file.  I want to retrieve all of the text
> inside a certain tag that I find with XPath.  The DOM seems to make
> this available with the innerHTML element, but I haven't found a way
> to do it in Python.

I use ElementTree (built into Python 2.5) for this type of XLM query.

-Larry




More information about the Python-list mailing list