beautifulsoup4 get attribute from tag code example
Example 1: beautiful soup get html attribute value
output = input_tag[0]['value']
Example 2: beautifulsoup find tag with attribute
soup = BeautifulSoup(html)
results = soup.findAll("td", {"valign" : "top"})