Skip to content

Instantly share code, notes, and snippets.

@s3rgeym
Created May 1, 2021 17:29
Show Gist options
  • Save s3rgeym/4859913c4aaa8aa5649802e8c938f9c7 to your computer and use it in GitHub Desktop.
Save s3rgeym/4859913c4aaa8aa5649802e8c938f9c7 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