Skip to content

Instantly share code, notes, and snippets.

@olto
Created December 19, 2015 08:45
Show Gist options
  • Select an option

  • Save olto/308c65e120df42ebe738 to your computer and use it in GitHub Desktop.

Select an option

Save olto/308c65e120df42ebe738 to your computer and use it in GitHub Desktop.
#! /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