J
J
James_Obry2021-11-23 15:29:09
Python
James_Obry, 2021-11-23 15:29:09

Why doesn't it come out to parse the block?

Here is the site: https://klavogonki.ru/gamelist/
I need to spar from there in the top competition
Here is the code:

import requests
from bs4 import BeautifulSoup

site = 'https://klavogonki.ru/gamelist/'
response = requests.get(site)
soup = BeautifulSoup(response.text, 'lxml')

print(soup.find_all('strong', class_="ng-binding"))

But it doesn't work for me, maybe something is wrong with the site? help me please

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Kuts, 2021-11-23
@fox_12

And who inspired you that parsing dynamic sites is a simple task?
With the help of requests, you pull out only the template, in fact, in which the necessary data is dynamically rendered using javascript, which, moreover, is also pulled over the websocket.
To try to render and pull this data - you need tools like Selenium and a deeper knowledge of what's going on in the browser

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question