HTML table parser using Python

Posted on May 17, 2006
Tags: python

More on the python front. This is my first cut at extracting HTML tables from webpages, and returning them in arrays, using Python. (Files here) The usage would look something like this:

import urllib
from table_parser import *

f = urllib.urlopen('http://myweb.com/data.html')
p = TableParser()
p.feed(f.read())
f.close()
print p.doc # Get to the data