mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-08-06 20:17:21 +08:00
Push Examples (#3735)
This commit is contained in:
11
extra/push-examples/python/index.py
Normal file
11
extra/push-examples/python/index.py
Normal file
@@ -0,0 +1,11 @@
|
||||
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)
|
||||
|
Reference in New Issue
Block a user