Registration for API

0

My code:

import zmq
context = zmq.Context()
socket = context.socket(zmq.SUB)
print("Recibo mensajes del servidor...")
socket.connect("XXXXXXXXXXXXXXXXX")
socket.setsockopt_string(zmq.SUBSCRIBE, u'')

while True:
    JSON = socket.recv_json()
    print(JSON)

I receive a lot of information from my API. I want to be able to make a record of this information and that when I keep it replace the '...........' with the "........"

    
asked by Napoleon Ricaurte 17.07.2018 в 18:51
source

0 answers