import urllib.request import json url = 'http://api.openweathermap.org/data/2.5/weather?q=Tokyo,jp' response = urllib.request.urlopen(url) content = json.loads(response.read().decode('utf8')) print(content) { "base": "stations", "clouds": { "all": 40 }, "cod": 200, "coord": { "lat": 35.69, "lon": 139.69 }, "dt": 1439347788, "id": 1850147, "main": { "humidity": 70, "pressure": 1005, "temp": 305.28,