doorbuzz/spacestatus.py

6 lines
163 B
Python
Raw Normal View History

2015-04-08 22:16:20 +02:00
import urllib, json
url = "https://spaceapi.syn2cat.lu/status/json"
response = urllib.urlopen(url);
data = json.loads(response.read())
print data["state"]["open"]