beautiful soup python print title of page code example
Example 1: get title beautifulsoup
# to get the title from BeautifulSoup
soup = ('html_file', 'html.parser')
print(soup.title)
Example 2: get title beautifulsoup
# to get the title from BeautifulSoup
soup = ('html_file', 'html.parser')
print(soup.title.string)