CrazeeIvan / python-weather-api

Automatically exported from code.google.com/p/python-weather-api
MIT License
0 stars 0 forks source link

Support openweathermap.org #42

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Please support openweathermap.org

Python 2

import ast
import urllib2
weather = 
ast.literal_eval(urllib2.urlopen('http://api.openweathermap.org/data/2.5/weather
?q=Paris,fr&units=metric').read())

Python 3
import ast
import urllib.request
weather = 
ast.literal_eval(urllib.request.urllopen('http://api.openweathermap.org/data/2.5
/weather?q=Paris,fr&units=metric').read())

For all services to support, see http://openweathermap.org/api

Original issue reported on code.google.com by pander.m...@gmail.com on 15 Dec 2014 at 1:00