I took a look, first row in the table is actually a header so under the first tr
there are some th
, this should work:
>>> mytr = soup.findAll('table')[9].findAll('tr')
>>> for i,row in enumerate(mytr):
... if i:
... print i,row.findAll('td')[2]
as in most cases of html parsing, consider a more elegant solution like xml and xpath, like:
>>> from lxml import html
>>> print html.parse(url).xpath('//table[@class="yfnc_datamodoutline1"]//td[2]')