M
M
MrPakkard2018-09-14 02:54:19
Parsing
MrPakkard, 2018-09-14 02:54:19

Parsing a site running on websockets?

Hello.
There is a site - the front on JS, the exchange of information with the backend takes place via web sockets. It is necessary to write a parser that will receive information on behalf of the user on this site in real time.
I have never encountered real-time parsing of such resources before, can someone tell me which way to look?
Thanks in advance.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
H
hacker2001, 2018-09-14
@hacker2001

aiohttp (client) can connect via websockets.

V
Viktor, 2018-09-14
@Levhav

phantomjs is basically a console browser.
Will be able to execute js and take a screenshot of the site, or access its dom tree at any time after the page is loaded.
I would call it a heavy but absolutely universal way.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question