mirror of
https://github.com/curly60e/pyblock.git
synced 2026-08-14 12:43:15 +02:00
10 lines
240 B
Python
10 lines
240 B
Python
##SN PyBlock BitNodes WebSocket##
|
|
|
|
import websocket
|
|
|
|
def on_message(ws, message):
|
|
print(message)
|
|
|
|
ws = websocket.WebSocketApp("wss://bitnodes.io/ws-bitcoind/bitcoind",
|
|
on_message=on_message)
|
|
ws.run_forever()
|