uptime-kuma/extra/push-examples/python/index.py

12 lines
217 B
Python
Raw Normal View History

2023-09-13 12:03:12 +00:00
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)