Skip to content

Instantly share code, notes, and snippets.

@OlegKorn
Forked from s3rgeym/tor_requests.py
Created August 18, 2021 14:19
Show Gist options
  • Save OlegKorn/838dd51fe85671592e6a0c36abf78dfa to your computer and use it in GitHub Desktop.
Save OlegKorn/838dd51fe85671592e6a0c36abf78dfa to your computer and use it in GitHub Desktop.
import requests
proxies = {"http": "socks5://localhost:9050", "https": "socks5://localhost:9050"}
r = requests.get("http://ifconfig.me", proxies=proxies)
print(r.text)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment