mirror of
https://github.com/balkian/gists.git
synced 2024-11-22 09:42:28 +00:00
7 lines
157 B
Python
7 lines
157 B
Python
|
try:
|
||
|
import urllib2
|
||
|
except ImportError:
|
||
|
from urllib.request import urlopen
|
||
|
response = urlopen('http://v4.ifconfig.co/ip')
|
||
|
HOSTNAME = response.read()
|