Skip to main content

How to use:

from torcello import Tor
from threading import Thread

def do_something():
    tor = Tor()
    for one in range(5):
        response = tor.get('http://domain-name.com')
        print('Hooray, here is desired data: %s' %  response.text)
        tor.new_ip()
    tor.destroy()

for incident in range(5):
    Thread(target=do_something).start()

also try it as rotating proxy:

from time import sleep
from torcello import Tor
from threading import Thread

for one in range(12):
    Thread(target=Tor).start()

while len(Tor.order) < 10:
    print('Waiting for tor, %s tor instances is ready' % len(Tor.order))
    sleep(5)


for incident in range(20):
    response = Tor.first().get('http://domain-name')
    print('Hooray, here is desired data: %s' %  response.text)
    while not Tor.next_tor():
        sleep(1)

# Delete all instances and close all Tor daemons
Tor.clean()

Metadata

Release files for Torcello 0.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for Torcello 0.3.1
File Size Uploaded
Torcello-0.3.1.tar.gz 4.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for Torcello 0.3.1
File Interpreter ABI Platform
Torcello-0.3.1-py3-none-any.whl Python 3 none any Details

Total release size: 10.1 kB

Release files / Torcello-0.3.1.tar.gz

Download URL Torcello-0.3.1.tar.gz
Size 4.9 kB
Tags Source
SHA-256 checksum
How to use checksums
de81373c6d91857a5670f887820ef51dc955387bb5d162c703dd9aa5b21af2d0
BLAKE2b-256 checksum
How to use checksums
3e603fc7b4ce3da24aacbd1efd30b9a3fab894a48b31597c08e9e199fdc0f61a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.7.3

Release files / Torcello-0.3.1-py3-none-any.whl

Download URL Torcello-0.3.1-py3-none-any.whl
Size 5.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7ad7ab14362306efab767ced5583b19de414a867845e499b71fba4845ff6733a
BLAKE2b-256 checksum
How to use checksums
941fbcb19fc7eb46eca644207d62374a7dbdc24904f9def445af55b13dc0290b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.7.3

Release history Release notifications | RSS feed

This release

0.3.1 This release

2 release files

0.2.0

1 release file

0.1.15

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page