Update pinger.py
Browse files
pinger.py
CHANGED
|
@@ -1,13 +0,0 @@
|
|
| 1 |
-
import time
|
| 2 |
-
import requests
|
| 3 |
-
|
| 4 |
-
URL = "https://warmifans-numinfo.hf.space"
|
| 5 |
-
|
| 6 |
-
while True:
|
| 7 |
-
try:
|
| 8 |
-
response = requests.get(URL, timeout=10)
|
| 9 |
-
print(f"Status: {response.status_code}")
|
| 10 |
-
except Exception as e:
|
| 11 |
-
print(f"Ping failed: {e}")
|
| 12 |
-
|
| 13 |
-
time.sleep(300) # 5 minutes
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|