diff --git a/weather.py b/weather.py index 7615288..b01ef1c 100644 --- a/weather.py +++ b/weather.py @@ -8,7 +8,7 @@ exit(1) zipcode=sys.argv[1] -url='http://api.openweathermap.org/data/2.5/weather?zip='+zipcode+'&units=imperial&APPID=81bf6ab8b40197439ba85fbc537fbaac' +url='http://api.openweathermap.org/data/2.5/weather?zip='+zipcode+'&units=imperial&APPID=' res=urllib.urlopen(url) data=json.loads(res.read()) -print("\nIt's now %sF with %s in %s" % (data['main']['temp'],data['weather'][0]['description'],data['name'])) \ No newline at end of file +print("\nIt's now %sF with %s in %s" % (data['main']['temp'],data['weather'][0]['description'],data['name']))