Skip to content

Instantly share code, notes, and snippets.

@saulcosta
Created February 6, 2019 03:25
Show Gist options
  • Save saulcosta/e2a96b1406f0c350136f4d61172f49a1 to your computer and use it in GitHub Desktop.
Save saulcosta/e2a96b1406f0c350136f4d61172f49a1 to your computer and use it in GitHub Desktop.
PyOWM example 3
import pyowm
owm = pyowm.OWM('<api_key>') # TODO: Replace <api_key> with your API key
sf = owm.weather_at_place('San Francisco, US')
weather = sf.get_weather()
print(weather.get_temperature('fahrenheit')['temp'])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment