Is there a way to use sock5 proxy to use TOR with requests? I know that requests only use http proxy...
import requests
r = requests.get('http://www.google.com',proxies= my_proxy)
Is there a way to use sock5 proxy to use TOR with requests? I know that requests only use http proxy...
import requests
r = requests.get('http://www.google.com',proxies= my_proxy)
You can use
socks, socket
modulesThe
socks
package can be installed from multiple packages which are forks of socksipy. One particular one that also works on Python3 is PySocks. You can install it, for example, with pip: