Simple scrape

This commit is contained in:
Alexander Munch-Hansen 2019-04-05 22:13:22 +02:00
parent 5453d7e3ea
commit 9a2fd04059

8
server/nightr/scrape.py Normal file
View file

@ -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()