K
K
Konstantin Malyarov2020-04-28 09:47:33
JavaScript
Konstantin Malyarov, 2020-04-28 09:47:33

How to simulate activity on the site?

There is a site on which an event occurs through websockets and a new element appears on the page.
How to catch an event?
There is an element:
div-order_list
An element will be added to it:
div-order
In which there is a checkbox and an accept button.

Where to look to write a bot that will select and accept orders automatically. I understand that page parsing will not help here.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
razielsd, 2020-04-28
@razielsd

If you solve the problem head-on and collect it from one page, then you can take Selenium / Puppeteer and follow the page through them. Otherwise, it’s better to connect yourself via a websocket and read what is sent, but this will be more difficult.

M
McBernar, 2020-04-28
@McBernar

Well, set an interval to check for the presence of this checkbox and click on health when it appears.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question