Answers for "beautifulsoup find data by a text"

1

beautifulsoup get text

# Find all of the text between paragraph tags and strip out the html
page = soup.find('p').getText()
Posted by: Guest on September-17-2020
0

beautifulsoup find by text

soup.find_all("a", string="Elsie")
# [<a href="http://example.com/elsie" class="sister" id="link1">Elsie</a>]
Posted by: Guest on September-17-2020

Code answers related to "beautifulsoup find data by a text"

Browse Popular Code Answers by Language