from BeautifulSoup import BeautifulSoup # зачитали файл: data = file('1.html').read() # построили дерево: soup = BeautifulSoup(data) # ишем теги по параметрам: found = soup.findAll('td', attrs = { 'class': "WithLRspaces", 'style': "text-align:right;", } ) # рассматриваем набранное: for tag in found: print tag.string