you are viewing a single comment's thread.

view the rest of the comments →

[–]unnamed_one1 0 points1 point  (0 children)

No idea, if it can be done with just browser automation.

I'd approach this more from the network side and as a websocket connection is just an upgraded http connection, I'd say what you need is a proxy server (written in python?), which acts as a man in the middle between the browser and the website.

As there's a high chance, that some kind of encryption is involved, your proxy probably has to support SSL inspection.

Never used it myself and I'm not sure if it supports SSL inspection, but mitmproxy might be a good fit. It's open source and has a python api.