Answer the question
In order to leave comments, you need to log in
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
The extension can access your webserver just like any other javascript code.
In particular, there is this .
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 questionAsk a Question
731 491 924 answers to any question