E
E
Ernest Vardanyan2020-06-07 16:56:38
Python
Ernest Vardanyan, 2020-06-07 16:56:38

How to implement such a parser ("eternal parser")?

Hello everyone, tell me what I need to learn in order to parse data that immediately appears on the site, for example, after 2 minutes, the info that I need and I want to get it will appear not by running my code at a certain time or every 2 minutes, but just so that he somehow immediately received this information and parsed for me, like an online parser. I heard something about websockets, maybe they will help, figs

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Saboteur, 2020-06-07
@saboteur_kiev

Either you agree with the site owner to send the data as soon as they are received, for example, send an email, or pull the URL of your site.
Otherwise, it is NOT possible, except to simply periodically re-request data on the site on a schedule.

S
soremix, 2020-06-07
@SoreMix

You need to watch exactly how the content appears on the site.
1. Either the site constantly sends requests to a special endpoint to receive updates, takes them from there and adds them to the site
2. The site receives updates via web socket
3. Statistics are not updated live, but appear after the page is refreshed.
Each situation will have a different approach.

V
Vladimir Korotenko, 2020-06-07
@firedragon

Make your f5 parser a koon. I think a period of 1 second will be enough

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question