Hi everyone. I haven’t posted in a long time, but have been watching launch very closely. Very excited to watch all this unfold! With the millions of nodes out there loafing along with out much data, it seems to me we need an easy way to artificially increase traffic on the network. Uploads cost money, so I don’t want to burn money spamming useless junk, but reads are free, so why not! I wrote a little python script that I call antlion.py to randomly request files from the network using a list of public addresses I found combing through the forum:
#!/usr/bin/env python3
from autonomi_client import Client
import asyncio
import random
def address_list(afile):
with open(afile) as f:
lines = f.read().splitlines()
return lines
async def main():
# Connect to the network
client = await Client.init()
print("Connected to network!")
# Retrieve data from random address line in file
address = random.choice(addresses)
retrieved_data = await client.data_get_public(address)
print(f"Retrieved data for address {address}")
# Wait before looping again
await asyncio.sleep(1)
# Run it
addresses = address_list('addresses.txt')
while(1):
asyncio.run(main())
And the addresses.txt file:
a0f6fa2b08e868060fe6e57018e3f73294821feaf3fdcf9cd636ac3d11e7e2ac
a7d2fdbb975efaea25b7ebe3d38be4a0b82c1d71e9b89ac4f37bc9f8677826e0
261f85f041460702dd3598e543808ff9835e748786999fced5c1803533eac644
304b74b76536e89910262ade48020a4ab2724bdaf353f3b42de625fee2477228
350a5b3de1482e05a0c12ce7f434504d7372961036f692565c6fbf0511b0b800
5a3fab6764916342f015c67b7856ba8ff2c0e711827ce18abdb3075f358c5237
fbacdcbf3498e2524bc984161fb9b629264c0b40430d524f97ddd6cf2bd1b70f
47fe2ed00dc9f7837f97ce513fa61e37b58aea3a055985c8f50f509606774dac
2e044863dd3eeb9cdcf3a1d2ee35102141fedd89fb833cbe72beefb8d57fc8d6
cc62ca079e8c3e649a134c0ff80da86c393ad16d6c40c002e0643afd7c51d55b
5bc2a0a0f309e55c83c98d033a1711b10338eba10c8696a4af65a39e70b1e6ae
4d32050ad7972af55f3f88ae6c3e0366e7bebc816a2c9990516d31a28713323f
Next I plan to create multiple threads to utilize more bandwidth and gracefully log and catch exceptions when they occur without killing the script. At this point I’m just sketching this out, but I think it would be really great if we had a bunch of volunteers continuously pulling data out of the network in some way or another. I couldn’t find an index of public data addresses, but if someone can add to this list, that would be awesome. I’ll keep tweaking this on the side, if folks find it useful, I can publish this to a public git repo somewhere.