Hey,
I need a way of controlling Tor connects/disconnects in Python, does anyone know of anything? Ideally I'd like to be able to connect to TOR and offer a SOCKS proxy through my Python script.
Thanks

If I remember correctly Tor actually sets up a proxy server which is by default restricted to just localhost. It might even be SOCKS.
Edit: It's a HTTP proxy, but you may be able to use this; http://code.google.com/p/torsocks/
Last edited by Chippiewill; 09-12-2011 at 05:33 PM.
Chippiewill.
I managed to get it working. Seeing as it was under Linux I installed Tor, config'd it to create a Socks5 proxy and just shoved everything I needed through it.
I've also managed to find something called TorCtl which should allow me to get a new Tor identity, if not I'll just restart the Tor process itself.
Want to hide these adverts? Register an account for free!