Answer the question
In order to leave comments, you need to log in
How to get information sent by ajax?
Please tell me, there is a site , the data is loaded with ajax
, I go to the Network tab on the developer panel,
then I see a link with parameters, go through it, but I don’t see any data, only the entry "get / rating"
How can I get data that using ajax get into the table on the site
Answer the question
In order to leave comments, you need to log in
Copy the entire request, not just the URL. In this case, you need a titleX-Requested-With
import requests
url = "http://mozgoboy.ru/ajax?action=get/rating&city=5&season=all&league=1&search_team_name=&_=1610204052611"
headers = {
'X-Requested-With': 'XMLHttpRequest'}
response = requests.request("GET", url, headers=headers)
print(response.text)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question