Get the current weather for Copenhagen:
import urllib2 import json # hent vejret for Koebenhavn url = 'http://api.openweathermap.org/data/2.5/weather?q=Copenhagen,dk' response = urllib2.urlopen(url) # parse JSON resultatet data = json.load(response) print 'Weather in Copenhagen:', data['weather'][0]['description'] |
Pingback: Pogoda na dziĆ | Monika Popielewicz