getting heading from a webpage in beautifulsoup code example
Example: getting heading from a webpage in beautifulsoup
heading = soup.find(name='h1', id='myname')
print(heading)
heading = soup.find(name='h1', id='myname')
print(heading)