mirror of
https://github.com/binwiederhier/ntfy.git
synced 2024-12-15 17:50:55 +00:00
9155c49571
This reverts commit 0821b8a25f
.
8 lines
170 B
Python
Executable file
8 lines
170 B
Python
Executable file
#!/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)
|