getting data from JSON in Python
I am trying to isolate several variables from a JSON file I have taken from https://api.weatherapi.com/v1/forecast.json?q='s-Hertogenbosch&days=3&alerts=yes&aqi=yes&key=X Key removed for safety reasons. Therefore I use the following code: import json response = urlopen(url) weer_data = json.loads(response.read()) location = weer_data['location']['name'] temp_current =…