Questions tagged [python]

Python is a programming language. For Tor there is the Stem library.

10 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2
votes
1answer
480 views

Cannot use get_ports() with stem modules

I am unable to use the function get_ports() with stem. It says # python get_ports.py OR [...] File "/usr/local/lib/python2.7/dist-packages/stem/socket.py", line 126, in send raise stem.SocketClosed(...
2
votes
0answers
374 views

Using Circuits in Parallel

Is there some easy method to use circuits in parallel in TOR using the STEM API. I wanted to use Website A for Circuit A and Website B for Circuit B. The problem is using threading the event listener ...
1
vote
0answers
262 views

Python JSON fetching via Socks5 proxy on Tails

I am trying to fetch JSON data, via a Python3 script, on Tails. I would like to know that this code is secure and doesn't leak IP or any other stuff. I know that Tails is configured to block any ...
1
vote
0answers
2k views

How to deal with RuntimeError: maximum recursion depth exceeded while calling a Python object?

This could be a very silly question, but I'm new to this topic and I couldn't figure out the problem after searching for a long time. It seems like I do have a Tor process listening. I tested it by ...
0
votes
0answers
113 views

how to get ip address from onion url using python

I am trying to get ip address from darknet onion url. import subprocess import ipaddress for ip in ipaddress.IPv4Network('5.0.0.0/24'): subprocess.call(["tor-resolve", "-x", ip]) I am not getting ...
0
votes
0answers
59 views

WinError 10061 No Connection could be made because the target machine actively refused it - trying to switch IP

I'm trying to use STEM to rotate IPs and running into this error every time. Here's the code I'sm using: from stem import Signal from stem.control import Controller from selenium import webdriver ...
0
votes
0answers
301 views

How to make new identity with TOR and Stem python? exact like (tor browser) new identity

I can't understand the differance between new identity from Tor browser or python? Python: I make request to call website from python with tor but website have limit reached and required reCAPTCHA so ...
0
votes
0answers
68 views

Python: Using ssl socket connection over Tor network

I want to create a socket, then wrap it into ssl.create_default_context, and then send the message via the Tor Network. Using the wrapper works fine, but sending it by proxy does not. I am not trying ...
0
votes
2answers
108 views

Fetching JSON via Tor

Hi I am trying to make a code that monitors cryptocurrency prices, so I am fetching JSON data from public sources and then processing it. I am using this python code by @Anurag Uniyal: import urllib....
0
votes
0answers
3k views

Tried for 120 seconds to get a connection to [scrubbed]:6667 (waiting for controller)

I'm running some experiments using the stem library where I change circuit paths fairly frequently. Every so often, I get a stream detached event and a Socks5Error: 'TTL Expired' in my Python script, ...