API REQUEST
This commit is contained in:
parent
cabf456282
commit
48914849c2
5
Chapitre 3 - Modularité/requettes.py
Normal file
5
Chapitre 3 - Modularité/requettes.py
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
import requests
|
||||||
|
import json
|
||||||
|
url = 'https://api.openweathermap.org/data/2.5/weather'
|
||||||
|
reponse = requests.get(url+'?q=Paris&appid=0001aa32345d1df47456f64b45f8170b')
|
||||||
|
print(reponse.json())
|
Loading…
Reference in a new issue