Answer the question
In order to leave comments, you need to log in
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"))
Answer the question
In order to leave comments, you need to log in
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 questionAsk a Question
731 491 924 answers to any question