dtcm-0.2.20
توضیحات
Declassed Tor Circuits Manager
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | dtcm-0.2.20 |
| نام | dtcm |
| نسخه کتابخانه | 0.2.20 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | AXY |
| ایمیل نویسنده | axy@declassed.art |
| آدرس صفحه اصلی | https://declassed.art/repository/dtcm |
| آدرس اینترنتی | https://pypi.org/project/dtcm/ |
| مجوز | - |
==============================
Declassed Tor Circuits Manager
==============================
Maintain the specified number of circuits and attach streams to them in a round-robin manner.
How to use:
.. code:: python
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.
نیازمندی
| مقدار | نام |
|---|---|
| - | stem |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl dtcm-0.2.20:
pip install dtcm-0.2.20.whl
نصب پکیج tar.gz dtcm-0.2.20:
pip install dtcm-0.2.20.tar.gz