Python selenium using TOR to get proxies works for firefox, but doesn't work for chrome Python selenium using TOR to get proxies works for firefox, but doesn't work for chrome selenium selenium

Python selenium using TOR to get proxies works for firefox, but doesn't work for chrome


To use Tor's SOCKS proxy server with chrome, include the socks protocol in the scheme with the --proxy-server option:

PROXY = "socks5://127.0.0.1:9150"

Chrome is defaulting to an HTTP proxy which is why it can't connect to sites when you launch.


To anyone who still gets here. The port is changed to 9050 now on my Windows tor daemon. Perhaps it will keep changing in the future. Just look at the console of your daemon and you will know what's the correct ip:port for you.