[tor-project] [New Feature] Stem CollecTor Support

Damian Johnson atagar at torproject.org
Sat Aug 17 21:01:20 UTC 2019

Hi all, I'm pleased to announce CollecTor support within Stem!


This introduces a brand new module that makes gathering Tor's network
topology at prior points in time dead easy. For example...


import datetime
import stem.descriptor.collector

yesterday = datetime.datetime.utcnow() - datetime.timedelta(days = 1)

# provide yesterday's exits

for desc in stem.descriptor.collector.get_server_descriptors(start = yesterday):
  if desc.exit_policy.is_exiting_allowed():
    print('  %s (%s)' % (desc.nickname, desc.fingerprint))


As ever, feedback and overly plump tomatoes welcome!

More information about the tor-project mailing list