“BeautifulSoup Get H1” Respostas de código

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

BeautifulSoup Get H1

company = soup.find('h1', {'class' : 'listing-name'})
Alert Anaconda

Respostas semelhantes a “BeautifulSoup Get H1”

Perguntas semelhantes a “BeautifulSoup Get H1”

Mais respostas relacionadas para “BeautifulSoup Get H1” em Python

Procure respostas de código populares por idioma

Procurar outros idiomas de código