1
0
Fork 0
mirror of https://github.com/binwiederhier/ntfy.git synced 2025-05-29 09:55:35 +02:00

Python examples; that's all; closes

This commit is contained in:
Philipp Heckel 2021-12-15 20:37:21 -05:00
parent 92f48fbbea
commit 4346f55b29
3 changed files with 30 additions and 0 deletions
examples/subscribe-python

View file

@ -0,0 +1,8 @@
#!/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)