Most voted "beautifulsoup" questions
Beautiful Soup is a library written in Python for HTML and XML document analysis. Widely used in the practice of Web Scraping, it creates a document analysis tree for collecting or scraping information from a web page.
Learn more…60 questions
Sort by count of
-
-1
votes1
answer278
viewsHow to open multiple HTML’s and save content sequentially in a txt
I need to open several HTML’s, get their text and save to a txt sequentially, but I don’t know how to do that. I can do this with a single HTML, but I need to do it with several, and sequentially.…
-
-1
votes1
answer75
viewsRemove tags within tag using Beautiful Soup
I need to remove all span tags inside the p tags keeping their content. Html code: <p>Conceito <span>e</span> <span>Signi</span>ficado<span> </span>de…
-
-1
votes1
answer72
viewsHow to use find in find_all result
When I execute a find_all, then I can’t use find in the outcome of this. Example: anuncios = soup.find_all('div', class_='txt-value') anuncios.find('p', class_='well') # Erro! But if I don’t…
-
-1
votes1
answer222
viewsI want to scrap a page, but I can’t get a text that has " " on it
Well, the title says it all, I want to get the price of a product from the site https://www.pontofrio.com.br/, like this: <span class="nm-price-value"…
-
-1
votes1
answer140
viewsRemove text from parent element keeping daughters in BS4 in Python
How to remove improper text by keeping the title, paragraph, and link. Code: <html> <body> <header> <h1> Titulo </h1> </header> <p>Hello World</p>…
-
-1
votes1
answer41
viewsBeautifulsoup - href search by text
Good afternoon everyone, I’m with a problem that I haven’t been able to solve or found any related. If I have: codigo_pagina = '''<li><span><span style="font-family: Courier…
-
-1
votes1
answer371
viewsPicking up texts within a column within a Python table
I always use variations of this code in other tables and it usually works, but this one I try anyway and it doesn’t work, what I’m doing wrong? url =…
-
-1
votes1
answer87
viewsModulenotfounderror: No module named 'bs4' and cannot access module bs4
I am trying to import the bs4 module into a code and every time I try the following error is displayed ModuleNotFoundError: No module named 'bs4' Theoretically the bs4 module has already been…
-
-2
votes1
answer62
viewsHow to read <br/> in HTML files and print as line breaks?
I made a web scraper using the modules BeautifulSoup and requests, that takes the definition and example of concepts in Urban Dictionary. This is code, using the word "reparation" as an example.…
-
-3
votes1
answer56
viewsReturn tag element in Beautifulsoup
Website: Subway network of the city of São Paulo. Goal: Scraping of the name of the stations of each line. Difficulty: I’m not able to isolate the names, for example: Jabaquara, Freedom... from bs4…