Answer the question
In order to leave comments, you need to log in
Is it possible to parse data, not through selenium?
Please tell me, here is the site, you need to parse this (rating) from it, is it possible to parse data without using selenium, and without clicking on the "Load more" button ?? (if there is, I would be grateful if you share it)
I looked at the json that comes there, but everywhere the value is null
Answer the question
In order to leave comments, you need to log in
1. The browser sends a GET request by default, and your button sends a POST
2. You missed the data that the button sends
Here is the working code:
import requests
data = {
'params[rows]': 10,
'params[type]': 0,
'params[season]': 'all',
'params[direction]': 'desc',
'params[order]': 'points_sum',
}
p = requests.post('https://albertparty.ru/api/get_new_rows', data)
print(p.text)
'params[rows]': 20
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question