Skip to content

Instantly share code, notes, and snippets.

@MarcScott
Created December 10, 2020 10:08
Show Gist options
  • Save MarcScott/550ef8ee7d947039edc70fe482960397 to your computer and use it in GitHub Desktop.
Save MarcScott/550ef8ee7d947039edc70fe482960397 to your computer and use it in GitHub Desktop.
from pyowm import OWM
from time import time
KEY = 'Your Key'
owm = OWM(KEY)
mgr = owm.weather_manager()
observation = mgr.forecast_at_place('London,GB', '3h')
weathers = observation.forecast.weathers
icons = [weather.weather_icon_name for weather in weathers]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment