mirror of
https://github.com/DanielPollithy/bluetooth_drone.git
synced 2025-10-16 11:45:38 +00:00
19 lines
301 B
Python
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() |