0

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 which interacts with Tor making new circuits for automation) and then use the same circuit that I used for automation in Python in the Tor Browser for manual work (e.g. filling forms or captchas).

My main requirements is:

  • First using a programming language(preferable Python) to create new circuits for some automated work.
  • Then using the Tor Browser with the same circuit that I used with Python to do manual work.

I know there are messy ways around it but still I am quite stuck.

So the part I am stuck is getting the same circuit: I know you can use Tor with TOR_TRANSPROXY and TOR_SKIP_LAUNCH, but what should do to allow the circuit made in Python with stem to work with on the Tor Browser?

The only workaround I see is to create a proxy in Python after doing the automated stuff with stem, then route it through the OS proxy settings and then using Tor with TOR_TRANSPROXY and TOR_SKIP_LAUNCH to get the same circuit, but again its too messy and lots of work.

Does anyone know a better way to do this, if I am right it should have something to do with stem and the Tor browser, or do I have to go the messy way.

Thanks, Dex Devlon.

  • 1
    I don't want to help too much since this sounds like you're writing a bot, but you can use stem to attach new streams to specific circuits (see the __LeaveStreamsUnattached option). – Steve May 12 at 1:12
  • This seems really promising, I would take a look right away, if It fits my needs I would mark the question as answered. Thanks @Steve – Dex May 12 at 1:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.