Tor-Network-Connection Connect Tor Python Code apt-get install tor apt-get install privoxy (we need to edit our privoxy config (/etc/privoxy/config) and add the following line -> forward-socks4a / localhost:9050 .) Start tor & privoxy service ( service tor privoxy start)