T
T
tatarrr952020-11-24 16:17:33
JavaScript
tatarrr95, 2020-11-24 16:17:33

How to send data to my Google Chrome extension from a local web server?

I have a python application that, according to certain rules, must poke buttons on the site through Chrome. I don’t want to use Selenium, I was thinking of writing an extension for chrome that will accept commands from a python script and poke buttons on the site. Is such an implementation possible, and if so, in which direction to dig, what to google?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
dollar, 2020-11-24
@dollar

The extension can access your webserver just like any other javascript code.
In particular, there is this .

N
Nadim Zakirov, 2020-11-24
@zkrvndm

Use WebSocket to keep in touch with your server and background process in the extension at all times.
https://learn.javascript.ru/websocket
https://yandex.ru/turbo/nuancesprog.ru/s/p/6466/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question