mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-12-18 02:47:24 +00:00
11 lines
216 B
Python
11 lines
216 B
Python
|
import urllib.request
|
||
|
import time
|
||
|
|
||
|
push_url = "https://example.com/api/push/key?status=up&msg=OK&ping="
|
||
|
interval = 60
|
||
|
|
||
|
while True:
|
||
|
urllib.request.urlopen(push_url)
|
||
|
print("Pushed!\n")
|
||
|
time.sleep(interval)
|