get text from a tag beautifulsoup code example
Example 1: get all paragraph tags beautifulsoup
soup = BeautifulSoup('html_file', 'html.parser')
all_paragraphs = soup.find_all('p')
Example 2: beautifulsoup get text
# Find all of the text between paragraph tags and strip out the html
page = soup.find('p').getText()