BeautifulSoup get title of link 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)