6 lines
118 B
Python
6 lines
118 B
Python
import urllib.request
|
|
|
|
|
|
ip = urllib.request.urlopen('https://ident.me').read().decode('utf8')
|
|
# Simple print
|
|
print(ip) |