BeautifulSoup Получите текст
# Find all of the text between paragraph tags and strip out the html
page = soup.find('p').getText()
Disgusted Dugong
# Find all of the text between paragraph tags and strip out the html
page = soup.find('p').getText()
htmlElement.string = "Text to be inserted in element"
print(htmlElementHere)
# <tagOfHTMLElement>Text to be inserted in element</tagOfHTMLElement>
# NOTE: Replaces the tag's original string