beautifulsoup find string code example
Example 1: soup.find for class
mydivs = soup.findAll("div", {"class": "stylelistrow"})
Example 2: beautifulsoup find by text
soup.find_all("a", string="Elsie")
# [<a href="http://example.com/elsie" class="sister" id="link1">Elsie</a>]