0
Q:

beautifulsoup find by text

# Find all of the text between paragraph tags and strip out the html
page = soup.find('p').getText()
0
soup.find_all("a", string="Elsie")
# [<a href="http://example.com/elsie" class="sister" id="link1">Elsie</a>]
0

New to Communities?

Join the community