Just a Python module suitable to use multiple Tor circuits at the same time
Project description
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()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Torcello-0.3.1.tar.gz
(4.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file Torcello-0.3.1.tar.gz.
File metadata
- Download URL: Torcello-0.3.1.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
de81373c6d91857a5670f887820ef51dc955387bb5d162c703dd9aa5b21af2d0
|
|
| MD5 |
c2139cf398bd8b7d0fa79be00d487da4
|
|
| BLAKE2b-256 |
3e603fc7b4ce3da24aacbd1efd30b9a3fab894a48b31597c08e9e199fdc0f61a
|
File details
Details for the file Torcello-0.3.1-py3-none-any.whl.
File metadata
- Download URL: Torcello-0.3.1-py3-none-any.whl
- Upload date:
- Size: 5.2 kB
- Tags: Python 3
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7ad7ab14362306efab767ced5583b19de414a867845e499b71fba4845ff6733a
|
|
| MD5 |
9e5850e0badedef2329d90d2fe5eb834
|
|
| BLAKE2b-256 |
941fbcb19fc7eb46eca644207d62374a7dbdc24904f9def445af55b13dc0290b
|