BeautifulSoup select text code example
Example 1: beautifulsoup get text
# Find all of the text between paragraph tags and strip out the html
page = soup.find('p').getText()
Example 2: beautifulsoup find by text
soup.find_all("a", string="Elsie")
# [Elsie]