SocketIO Websocket Monitor


Python SocketIO



About the project

I aimed to create a monitoring system capable of gathering live listing and sales data from a CSGO buy/sell website. Initially, I successfully developed a code segment using their REST API to acquire historical data for updating my spreadsheet. However, I required real-time information, and the website offered a websocket for this purpose.

 

Unfortunately, I encountered some issues while using SocketIO with Python. Since I couldn't troubleshoot the server side, I had to devise a solution for frequent disconnections (despite trying various methods, I couldn't efficiently catch and reconnect). This issue seemed to stem from either a client-side connection problem or a python-socketio issue. To resolve this in the future, I plan to attempt a connection using Node.js and utilize Python for distributing the data retrieved by the websocket.

 

The code for this project is available here. Below, you can find a few examples of the output from the websocket.