☰
Debian Codegraph
@
2.27.0-1
2.24.0-1
/
/
examples
/
subscribe-python
/
subscribe.py
☽
☼
examples/subscribe-python/subscribe.py
code
plain
raw
Apache-2.0
or
GPL-2
2022 Philipp C. Heckel.
debian/copyright
1
#!/usr/bin/env python3
2
3
import requests
4
5
resp = requests.get("https://ntfy.sh/mytopic/json", stream=True)
6
for line in resp.iter_lines():
7
if line:
8
print(line)