Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Data through a websocket
#1
Hi,

I am a newbie to Python and to this forum. I have done a few courses on Python.

I am now trying to listen to data from a websocket. I intend to put this into a database and then process it later. For now, I have been successful at authenticating and opening up the websocket and seeing data continuously stream on my screen. However, I have no idea how to save it to a dict in python. There is no method defined or that I am able to find. u.recv() does not work either as it is a custom library. I get an error stating this is an unknown method for object u.

Am I missing something here? I have tried contacting the org owning the websocket, but no reply from them either.

Please let me know. Thank you.
Reply
#2
Which library are you using?
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to send a pong on websocket-client tomtom 0 3,519 Aug-15-2022, 05:58 AM
Last Post: tomtom
  Can't write to .txt after opening websocket gerald 5 1,539 May-03-2022, 12:43 PM
Last Post: deanhystad
  asyncio calls within sync function ( Websocket on_open) orion67 0 1,375 Jan-16-2022, 11:00 AM
Last Post: orion67
  Help with WebSocket reading data from anoter function korenron 0 1,301 Sep-19-2021, 11:08 AM
Last Post: korenron

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020