import websockets
from websocket import create_connection
ws = create_connection("---")
print (ws.recv())
while True:
if json.loads(ws.recv())['event'] == 'now':
print(json.loads(json.loads(ws.recv())['data'])
input('Press enter to exit')