
.jpg)
When using sync=True, the requests are sent synchronously, and it blocks your script.Ĭhange the timeout param to set a timeout (in seconds) for each request in the thread pool. will send 15 requests, randomly picked from the urls list. There is no guarantee that they are received in exact same order (and generally won't).The requests are sent in the order of the list.The total number of sent requests is times * len(urls) (it sends times times the entire list of requests).The requests are sent in whatever order, and randomly picked.The total number of sent requests is times (it sends times times a random request from the list).The urls parameter must be a list of URL to fetch, in the following formats :
Tor network not safe anymore series#
Sends a series of HTTP requests, times times, in parallel threads and without waiting for responses.Įach request is complete (unlike with the annoy() method) so it appears in the accesslog of the remote server and you may use it to generate fake logs. Totoro.make_noise( urls, times=1, threads=10, shuffle=False, sync=False, timeout=5) Note : Do not use it to generate fake logs because it won't work. You must pass the method parameter to specify the HTTP verb. Use it exactly as you'd use the requests.request method. Performs a direct request (with your official public connection). See the IP Geolocation API for information on the returned JSON object.

# Get IP information (real IP and Tor IP) ipinfo = toro. status() # True / False # Force the use of a VPN when sending requests over Tor toro. # Get Tor status (will check both SocksPort and ControlPort/ControlSocket connection) status = toro. #!/usr/bin/env python3 from totororequests import Totoro # Get Totoro toro = Totoro()
