I need to read a variable from a js script.
However, the variable gets constantly updated by a websocket pushing new messages to the client.
So each time a message gets pushed from the server to the client the js script processes the data.
Now, I already tried to access the websocket via python websocket client. However, I cannot connect directly. Therefore instead I will need to use Selenium with Chrome to get the data from the websocket.
Now, I am not exactly sure yet how to do this.
But my idea is something like this:
My question: is this possible and if so how to do this?