mirror of
https://github.com/balkian/gists.git
synced 2024-11-25 02:32:28 +00:00
2ee5da5427
git-subtree-dir: repos/b21443fe1d57fdfe0fe2f79827be3551 git-subtree-mainline:641416ea0a
git-subtree-split:c3f90fc237
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()
|