Created
October 2, 2016 14:20
-
-
Save gawel/8ecff918ed7421a8b3272a38cca5e84f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
# pip install "requests[socks]" | |
import requests | |
proxies = { | |
"http": "socks5://localhost:9150", | |
"https": "socks5://localhost:9150" | |
} | |
resp = requests.get( | |
"https://api.ipify.org?format=json", | |
proxies=proxies | |
) | |
print(resp.json()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment