Compare commits
No commits in common. "6740783dbc05a75d8d873d5ff17d647d177cf0fe" and "cabf45628236ce8fa1b3ae29dac291465c1eb653" have entirely different histories.
6740783dbc
...
cabf456282
|
@ -1,10 +0,0 @@
|
|||
import requests
|
||||
import json
|
||||
url = 'https://api.openweathermap.org/data/2.5/weather'
|
||||
reponse = requests.get(url+'?q=Paris&appid=0001aa32345d1df47456f64b45f8170b')
|
||||
print(reponse.json())
|
||||
|
||||
from pyowm.owm import OWM
|
||||
manager = OWM('0001aa32345d1df47456f64b45f8170b').weather_manager() # obtenir un accès au site
|
||||
observation = manager.weather_at_place('Paris') # obtenir la météo d'une ville
|
||||
print(observation.weather.status, observation.weather.temperature('celsius'))
|
Loading…
Reference in a new issue