Created
May 10, 2022 20:23
-
-
Save KenoLeon/f3a818dd917d2ea9db1a9a5dc917d621 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # AccuWeather API call example 5 Day Forecast for | |
| # Mexico City Code: 242560 | |
| import requests | |
| url = "http://dataservice.accuweather.com/forecasts/v1/daily/5day/242560?apikey=YOURAPIKEY" | |
| resp = requests.get(url) | |
| if resp.status_code == 200: | |
| print(resp.json()) | |
| else: | |
| print(resp.status_code) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment