Questions tagged as 'beautifulsoup'

1
answer

Access Tag via beautifulsoup

Hello, I'm having trouble accessing the price that is in the third line of the code via beautifulsoup. Does anyone have any idea how to access?                                               <span id="ctl00_Conteudo_ctl01_spanPrecoP...
asked by 05.12.2018 / 14:49
1
answer

Get tags inside tags on BeautifulSoup

I have the following situation: <a href="https://g1.globo.com">Globo</a> <h3 class="b"> <a href="https://www.google.com">Google</a> </h3> Using BeautifulSoup, how do I get only the href and tag 'a' text...
asked by 31.10.2018 / 02:25
0
answers

BeautifulSoup Python (bs4), find pseudo attribute in style directive

I have several html files with entries equivalent to these: <span style="font-family: Arial; color: black; text-decoration:line-through">1 bla bla</span> <font style="font-family: Arial; color: black; text-decoration:line-thro...
asked by 10.10.2018 / 18:32
1
answer

I can not do web scraping properly from a Python web site

Well, I was making a code that would check the day of each comic / gif page, and if the day is the same as the current day (in the code I put 14 only because the site does not update the weekend and I I needed to test it somehow), I would downlo...
asked by 15.09.2018 / 23:39
1
answer

Scraping using Selenium and Beautifulsoup

I'm trying to do a scrap on a book of books, I need to get the titles and categories of all the books posted. On the first try, I get an Attribute Error, which should happen several times because the site is poorly done and the things I'm not al...
asked by 27.06.2018 / 11:30
1
answer

Python: how to edit tag with bs4

I have a html code, well polluted with Style in almost all tags, as well as% unnecessary% tags. How can I use beautifulsoup, to remove only attrs = style in <font><span> and the <p> tags without removing their...
asked by 12.03.2018 / 04:26
1
answer

I want to scrape a page, but I can not get a text that has "& nbsp" in it

Well, the title says it all, I want to get the price of a product from link , which looks like this: / p> <span class="nm-price-value" itemprop="price">R$&nbsp;367,60</span> Using this code: import bs4 import requests def...
asked by 21.10.2018 / 17:13
1
answer

BeautifulSoup find method returns empty [closed]

I did a web scraping program in Python to check the price of Bitcoin on some exchanges , however the field I'm trying to download is left blank. In case, I'm trying to get the data is between the tags <div class="info"> and...
asked by 18.12.2017 / 15:14