webfp / tor-browser-selenium

Tor Browser automation with Selenium.
MIT License
548 stars 100 forks source link

change tor circuit while torbrowser is running #211

Open milahu opened 3 months ago

milahu commented 3 months ago

im looking for an alternative to examples/parallel.py

i want to use torbrowser as a download manager (free proxies) so for every request i need a new tor circuit (new IP address) and the old circuits should stay active until the downloads are finished

with curl i would do this to get 3 different tor circuits

curl -s --proxy socks5h://user1@127.0.0.1:9050 http://httpbin.org/ip | jq -r .origin
curl -s --proxy socks5h://user2@127.0.0.1:9050 http://httpbin.org/ip | jq -r .origin
curl -s --proxy socks5h://user3@127.0.0.1:9050 http://httpbin.org/ip | jq -r .origin

torbrowser has menu > new tor circuit for this site can we also call that from tbselenium?