Questions tagged [python]

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

18 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3
votes
1answer
570 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
438 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
41 views

Python3 + Tor's stem library => Permission denied when creating new hidden service

I am trying to deploy a new hidden service using Tor's stem library for Python3, but I am always receiving errors that the service can not be created due to '[Errno 13] Permission denied' issue. I am ...
1
vote
1answer
175 views

Tor Browser failed to start under Selenium

Trying to connect to tor via selenium for the first time. Using Windows 7 64 ...Getting this error code.. selenium.common.exceptions.WebDriverException: Message: Process unexpectedly closed with ...
1
vote
0answers
284 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
15 views

Tor with Python and Selenium on MacOS

I want to use Python and Selenium to do some webscraping. I have a MacOS. Is there any good step by step instruction for the setup? Thank you very much
0
votes
0answers
27 views

Persistent installation of Python and non-native packages in Tails OS

Can Python (or Anaconda) be installed and run on Tails OS? If so, how to have a persistent installation of Python/Anaconda in a Tails USB drive? I thought Tails cleanses itself of any program that is ...
0
votes
0answers
39 views

Why can't I connect through tor when I can connect through tor browser?

I am trying to use tor on Windows to access Imgur which is blocked in my country, now when I try to use Tor Browser with obfs4 everything seems fine but when I try to use only tor somehow I can't ...
0
votes
1answer
48 views

How do I reuse the onion address of a hidden service

I first want to generate a service and save the private key for reuse if one hasn't already been generated and saved, and if one has been generated and saved I want to be able to load it again if ...
0
votes
0answers
45 views

privoxy/tor/python 503 SOCKS5 TTL expired

i'm trying to access hidden-service through python: import requests proxies = {'http': 'http://127.0.0.1:8118', 'https': 'http://127.0.0.1:8118'} s = requests.Session() r = s.get("http://...
0
votes
1answer
297 views

Cannot connect to my tcp tor hidden service in Python

I have a fully functional tor hidden service with his v3 url, created with stem and the controller class. The server is redirecting the traffic into a local tcp server running on port 5000 created ...
0
votes
1answer
74 views

Using stem with multithreading Python

I am trying to use two circuits in parallel with stem. In tor browser, two different websites use two different circuits. I am trying to get similar functionality in my python code. Here is what I am ...
0
votes
0answers
45 views

Integrating Tor Browser and Python to get the same circute

This is a cross post from my StackOverFlow question(also I little edited). Ok, my question is quite straightforward: I want to use Python to make automated requests with stem (or any other library ...
0
votes
0answers
15 views

Is there a way to republish tor descriptors?

How can I republish Tor hidden service's descriptors without re-running Tor. I did come across this link https://stem.torproject.org/tutorials/mirror_mirror_on_the_wall.html and used create(). But I ...
0
votes
0answers
236 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
2answers
156 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, ...