5 lines
129 B
Python
Raw Normal View History

2022-10-01 09:56:37 +05:30
from requests import get
2022-09-16 23:29:42 +05:30
2022-10-01 09:56:37 +05:30
ip = get('https://ipv4.icanhazip.com').text
2022-09-16 23:29:42 +05:30
2022-10-01 09:56:37 +05:30
print('>>> My public IP address is: ' + ip[0:-1] + ' <<<')