From 9a2fd04059703a6c571ff09100d438ec8f0ac447 Mon Sep 17 00:00:00 2001 From: Alexander Munch-Hansen Date: Fri, 5 Apr 2019 22:13:22 +0200 Subject: [PATCH] Simple scrape --- server/nightr/scrape.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 server/nightr/scrape.py diff --git a/server/nightr/scrape.py b/server/nightr/scrape.py new file mode 100644 index 0000000..f985acb --- /dev/null +++ b/server/nightr/scrape.py @@ -0,0 +1,8 @@ +import requests + +def scrape_traffic(): + r = requests.get('https://portal.opendata.dk/api/3/action/datastore_search?resource_id=b3eeb0ff-c8a8-4824-99d6-e0a3747c8b0d') + data = r.json() + print(data) + +scrape_traffic() \ No newline at end of file