Created
December 19, 2015 08:45
-
-
Save olto/308c65e120df42ebe738 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
| #coding=utf-8 | |
| """ Coding by olto | |
| 19-12-2015 """ | |
| import requests | |
| print("Get your IP Adress... ") | |
| url="http://checkip.dyndns.org" | |
| print(url) | |
| req = requests.get(url) | |
| req = req.text | |
| req = req.replace("<html><head><title>", "Your IP Adress is : ") | |
| req = req.replace("Current IP Check</title></head><body>Current IP Address:", " ") | |
| req = req.replace("</body></html>", " ") | |
| print("\n",req) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment