mirror of
https://github.com/binwiederhier/ntfy.git
synced 2024-08-21 18:43:51 +02:00
9 lines
170 B
Python
9 lines
170 B
Python
![]() |
#!/usr/bin/env python3
|
||
|
|
||
|
import requests
|
||
|
|
||
|
resp = requests.get("https://ntfy.sh/mytopic/json", stream=True)
|
||
|
for line in resp.iter_lines():
|
||
|
if line:
|
||
|
print(line)
|