Advertisement
teslariu

clima

May 26th, 2021
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.29 KB | None | 0 0
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. #
  4. import requests
  5. import pprint
  6. from datetime import datetime
  7.  
  8.  
  9.  
  10. url = "https://api.openweathermap.org/data/2.5/onecallweather?q=Buenos%20Aires,AR&units=metric&lang=es&appid="
  11.  
  12. r = requests.get(url)
  13. data = r.json()
  14. pprint.pprint(data)
  15.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement