Instalar:
$ sudo apt-get install tor privoxy -y
$ pip install selenium
Executar:
$ sudo cp /etc/privoxy/config /etc/privoxy/config.bkup
$ echo "forward-socks5 / localhost:9050 ." >> /etc/privoxy/config'
Configurar:
$ tor --hash-password suasenha
Descomente as seguintes linhas no arquivo /etc/tor/torrc:
ControlPort 9051
HashedControlPassword
colocarohashgeradonopassoanterior
CookieAuthentication 1
Execute o tor e privoxy e checar se Tor está rodando na porta 9050 e privoxy na porta 8118:
$ netstat -tulpn | grep 9050
$ netstat -tulpn | grep 8118
Rodar o arquivo:
$ python3 gocris.py