feat: rename file names
This commit is contained in:
13
show_my_ip.py
Executable file
13
show_my_ip.py
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/usr/bin/env python3
|
||||
import requests
|
||||
|
||||
IP_ACTION_URL = "https://hatter.ink/ip/ip.jsonp"
|
||||
|
||||
if __name__ == "__main__":
|
||||
response = requests.get(IP_ACTION_URL)
|
||||
if response.status_code != 200:
|
||||
print("[ERROR]", response.status_code)
|
||||
else:
|
||||
response_json = response.json()
|
||||
print(response_json)
|
||||
print("Your IP is:", response_json['ip'])
|
||||
Reference in New Issue
Block a user