R
R
rus_prog2020-03-07 13:24:47
Python
rus_prog, 2020-03-07 13:24:47

How to run page reload method?

I am writing my python parser with Beautiful Soup and Requests (if needed).
The parser works on a one-page site (I will solve the exam if it is important).
The bottom line is that blocks with tasks are parsed, which are loaded as you scroll through the page, 5 pieces each. As I was able to figure out, the plist_loader class is responsible for this. It is called and immediately goes into oblivion. Its call through the parser itself did not bring any result.
Please tell me how to make the parser finish loading the pages on its own.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Karbivnichy, 2020-03-26
@rus_prog

url = 'https://phys-ege.sdamgia.ru/test?filter=all&category_id=205'

responce = requests.post(url,data={'ajax':'1','skip':'10'})

Here you need to change the skip parameter. If set to 0, the first 5 blocks are loaded, 5 are the next 5, and so on. If you set the parameter to 10, 1 block will be loaded, since there are only 11 of them.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question