Created
May 29, 2016 11:25
-
-
Save xtao/f4c86b0ffd052c0cb628fb3bef00828a to your computer and use it in GitHub Desktop.
Python SSE Client
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import urllib | |
response = urllib.urlopen('http://192.168.77.21:9001/v2/coreinfowatcher?watch=1&heartbeat=1') | |
for line in response: | |
print line |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Beautiful.