Created
March 5, 2018 19:53
-
-
Save avelino/f702091cb54893fccd34743775886154 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
#!/usr/bin/env python | |
import requests | |
import base64 | |
proxies = { | |
'http': 'http://avelino:[email protected]:31280', | |
'https': 'http://avelino:[email protected]:31280' | |
} | |
def main(): | |
url = 'http://ifconfig.me/ip' | |
response = requests.get(url, proxies=proxies) | |
print('ip: {}'.format(response.text.strip())) | |
if __name__ == '__main__': | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment