find by attribute beautifulsoup code example
Example: beautifulsoup search for elements with attributes
soup = BeautifulSoup(html)
results = soup.findAll("td", {"valign" : "top"})
soup = BeautifulSoup(html)
results = soup.findAll("td", {"valign" : "top"})