Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- # -*- coding: utf-8 -*-
- #
- import requests
- import pprint
- from datetime import datetime
- url = "https://api.openweathermap.org/data/2.5/onecallweather?q=Buenos%20Aires,AR&units=metric&lang=es&appid="
- r = requests.get(url)
- data = r.json()
- pprint.pprint(data)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement