Z
Z
zeng1242021-11-05 01:36:01
Python
zeng124, 2021-11-05 01:36:01

How to parse json file from dynamic site?

The question is probably tricky. We have mail https://mail.yandex.ru/?uid=1016400837#inbox and it needs to be parsed. When I send a normal get request to a website, the html page turns blank and the code says 'This version of mail does not work with JavaScript disabled'. Well, I decided to parse the page by loading it with post requests.
61845e90aa6c7978398977.png
here the post request
61845eb2b683c175024748.png
is open in the response networ json file is fully present but by clicking on the link of the post request itself, there is nothing https://mail.yandex.ru/web-api/models/liza1?_m=messages
but if you do the same procedure with get request and follow its link, then the json file will be present
6184604872f52197966785.png
, so how do I get the whole json file from the post request.
roughly speaking, I need to parse json from a post request
I hope the question is clear

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nadim Zakirov, 2021-11-05
@zeng124

You need to make a PSOT request using exactly the same parameters that you see in the console. True, they did not get into the screenshot, but they should be somewhere lower. If you repeat the request, get your data.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question