Questions tagged [Beautiful Soup] (1)

1
answer

How to host lxml on yandex cloud functions?

You need to write a function which, when it enters the file into S3 would have it being parsed. The difficulty is that all dependencies should be directly in the folder by the script itself and there is no possibility to use a Virtual Environment. And here came the difficulty with the fact that I in no way manage to get to ...
Ted_Ku asked April 8th 20 at 10:03
2
answers

Why not output anything in the parser in Python?

Write the parser in Python. Why not print the content of the previous tag (i.e. nothing is shown) and a command prompt does not give any error. Please suggest. from urllib.request import urlopen from bs4 import BeautifulSoup html = urlopen("http://www.pythonscraping.com/pages/page3.html") bsObj = BeautifulSoup(html, "html...
kareem22 asked April 8th 20 at 09:59
2
answers

How to extract the contents of links excluding the links in the tag?

There is an html <span> <a href="/services/service1/">Сервис1</a> </span>, <span> <strike> <a href="/services/service2/">Servis2</a> </strike> </span> <span> <a href="/services/service3/">Сервис3</a> </span>, <span> <strike> ...
nathen_Conn asked April 8th 20 at 09:53
2
answers

How to remove spaces from price value after receiving data from the parser Python 3.8?

Hi! Can anyone help with a solution to the problem of removing the gaps in price (2 500). The point is, you want to know the price per share, but further data prevents a space. I tried replace(" ", ""), but it's not helping. Also checked the data type on the output "class.str" the idea line, then it should work or this sepa...
abe51 asked April 8th 20 at 09:23
1
answer

Parsing in python. How to fix my pagination?

Hello! There is such a program that parses the products at the link: import requests import csv from bs4 import BeautifulSoup as bs headers = {'accept': '*/*', 'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:72.0) Gecko/20100101 Firefox/72.0'} MAIN_URL = 'https://www.yoox.com' # to form the complete links bas...
modesto.Ankunding0 asked April 7th 20 at 16:15
2
answers

How to get table data from html?

Learn to write a parser. Now my task is to parse tabular data from the website https://coinmarketcap.com/ where I need data directly from the table of cryptocurrencies, their value, etc., which lie in the tbody block. But when using Beautiful Soup trying to get to the table in a tbody, it gives "AttributeError: 'NoneType' o...
beaulah asked April 7th 20 at 09:46
1
answer

How to avoid redirection when parsing the website?

I'm doing parsing website in python with BF4. All but one are parsed without problems. But the problem the page cannot be read due to the fact that after referring to this page it redirects me to main page. Is responsible for some kind of script? And in theory to get around this redirect?
Annamarie.Morar asked April 7th 20 at 09:46
1
answer

How to put data in Python bs4?

<html><body><p>[{"productId":11804034,"productCode":"1438196","productPrice":{"current":{"value":3290.0,"text":"3 290,00 RUB","versionId":"REGP000002000800083125810000166999","conversionId":null},"previous":{"value":3290.0,"text":"3 290,00 RUB","versionId":"REGP000002000800083125810000166999","conversionId...
concepcion.Kemm asked April 7th 20 at 09:34
1
answer

Pricing site how to log in through VK?

How to put a website where you have login only through VC. Use requests and bs4. When parsing the page gives this result. <html lang="en"> the <head><meta charset="utf-8"/> <meta content="width=device-width,initial-scale=1,shrink-to-fit=no" name="viewport"/> <meta content="e1bab0387497028b" name...
Marlene asked April 7th 20 at 09:30
1
answer

How to make the data from the parser in python(bs4) moved into excel or another program?

Hello world!) How to make the data from the parser in python(bs4) moved into excel or another program? I just don't think the customer will like to run the console and copy it all somewhere Thank you)
Misty.Willms asked April 4th 20 at 00:34