Obtenha todo o H1 BeautifulSoup
# to get all h1 from the page
soup = BeautifulSoup('html_file', 'html.parser')
all_h1 = soup.find_all('h1')
Tejas Naik
# to get all h1 from the page
soup = BeautifulSoup('html_file', 'html.parser')
all_h1 = soup.find_all('h1')