Quick & Dirty code fragment:
Code: Select all
for td in html.findAll('td'):
img=td.find('img')
if img:
print img['src'],img['title']
If you've got more than one table on the page, you'd want to find the table first, then do the findAll() on the table rather than the whole file.