Advertisement
Guest User

not working

a guest
Oct 29th, 2017
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.22 KB | None | 0 0
  1. #/usr/bin/env python
  2.  
  3. import urllib.request, json
  4.  
  5.  
  6.  
  7. weather = eval(str(urllib.request.urlopen("http://api.openweathermap.org/data/2.5/weather?q={}&APPID={}&units={}".format(city, api_key, units)).read())[2:-1])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement