Is there any method to get the available bandwidth of a Tor Relay. (Not the one the relay publishes itself.)
Plus I wrote the following sets of code:
from stem.descriptor.remote import DescriptorDownloader
downloader_1 = DescriptorDownloader()
try:
for desc in downloader_1.get_consensus().run():
print desc.bandwidth
except Exception as exc:
print("Unable to retrieve the consensus: %s" % exc)
I wanted to know the difference between these two. Does the first script return the available bandwidth?
from stem.descriptor.remote import DescriptorDownloader
downloader_0 = DescriptorDownloader()
try:
for desc in downloader_0.get_server_descriptors().run(): # Information that relays publish about themselves.
print desc.average_bandwidth
print desc.burst_bandwidth
print desc.observed_bandwidth
except Exception as exc:
print("Unable to retrieve the server descriptors: %s" % exc)
Can someone explain in detail what values that these code scripts return represent and is one of them the available bandwidth and if not how can one find the available bandwidth.