“BeautifulSoup Encontre por texto” Respostas de código

BeautifulSoup Get Text

# Find all of the text between paragraph tags and strip out the html
page = soup.find('p').getText()
Disgusted Dugong

BeautifulSoup Encontre por texto

soup.find_all("a", string="Elsie")
# [<a href="http://example.com/elsie" class="sister" id="link1">Elsie</a>]
Disgusted Dugong

Respostas semelhantes a “BeautifulSoup Encontre por texto”

Perguntas semelhantes a “BeautifulSoup Encontre por texto”

Mais respostas relacionadas para “BeautifulSoup Encontre por texto” em Python

Procure respostas de código populares por idioma

Procurar outros idiomas de código