This page gets Seattle weather updates using wttr.in
Overcast
.--. +44(41) °F
.-( ). ↑ 6 mph
(___.__)__) 9 mi
0.0 in
#!/usr/bin/env python3
"""get openweathermap for 98133"""
import requests
def getweather(URL):
try:
r = requests.get('http://wttr.in/seattle?0fnQAT')
#print(r.text)
return r.text
except Exception as e:
print ('Failed: ', e)