parse a table in HTML page.

antonio_wn8 antonio.pierro at gmail.com
Tue Oct 28 10:48:00 EDT 2008


Hi all,
I have a need to read and parse a table in HTML page.

I’m using the following script:
http://trac.davidgrant.ca/browser/src/python/misc/siteuptime/TableParser.py

It works fine  aside from  link in href.

Example:

String to parse:
<tr><td><a href='vaffa.html'>elog</a></td><td>normal text</td></tr>

Output:
[[['elog', 'normal text']]]

as you can see it misses the info about href...
how can get this information 'vaffa.html'?

thanks,
Antonella



More information about the Python-list mailing list