Skip to main content

Declassed Tor Circuits Manager

Project description

Maintain the specified number of circuits and attach streams to them in a round-robin manner.

How to use:

import dtcm

config = {
    'tor': {
        'address': '127.0.0.1',
        'socks_port': 9100,
        'control_port': 9051,
        'password': '12345'
    },
    'circuits': {
    'hops': 2,  # Although this can be 1, exit-only circuits
                # do not work, need a guard relay.
                # So 2 is the minimum.
    'count': 100
        stable_only: False  # only use relays with Stable flag
        fast_only: False    # only use relays with Fast flag
    }
}

dtcm.init(config)
# dtcm.logger.setLevel(logging.DEBUG)
# your code here, a crawler, right?
# or just a sleep call if this is a standalone process
dtcm.fini()
copyright:

Copyright 2022 AXY axy@declassed.art

license:

BSD, see LICENSE for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dtcm-0.2.20.tar.gz (5.5 kB view hashes)

Uploaded source

Built Distribution

dtcm-0.2.20-py3-none-any.whl (6.3 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page