import lxml.html
root = lxml.html.fromstring(doc)
root.xpath('//tr/td//text()')
for tbl in root.xpath('//table'):
    elements = tbl.xpath('.//tr/td//text()')
print(elements)
python parse html table using lxml