def search_dht(dht, info_hash):
peers = []
for i in range(0, 5):
peers = dht.get_peers(binascii.a2b_hex(info_hash))
time.sleep(1.5)
return peers
if __name__ == '__main__':
dht = btdht.DHT()
dht.start() # now wait at least 15s for the dht to boostrap
print("Initializing DHT", flush=True)
time.sleep(20)
print(search_dht(dht, '756D9FA81E9328A97A03EE134EBCA8C2CCE3B670'))
I can't really find what "0 nodes, 0 goods, 0 bads | in: 0, out: 3 en 1s" mean in the documentation. Why would I be getting this "error" and not the expected (IP, PORT) outcome?
The output I get is
I can't really find what "0 nodes, 0 goods, 0 bads | in: 0, out: 3 en 1s" mean in the documentation. Why would I be getting this "error" and not the expected (IP, PORT) outcome?