get all h1 beautifulsoup
# to get all h1 from the page
soup = BeautifulSoup('html_file', 'html.parser')
all_h1 = soup.find_all('h1')
Are there any code examples left?
New code examples in category Python
# to get all h1 from the page
soup = BeautifulSoup('html_file', 'html.parser')
all_h1 = soup.find_all('h1')