bluetooth_drone/drone_poller.py
Daniel Pollithy 50c32fea27 d3.js
2017-08-30 17:49:54 +02:00

19 lines
301 B
Python

import urllib
import json
import time
import settings
url = 'http://google.de'
def run():
while True:
response = urllib.urlopen(url)
data = json.loads(response.read())
print(data)
time.sleep(settings.WEBSITE_POLLING_SLEEP)
if __name__ == '__main__':
run()