Created
December 10, 2020 10:08
-
-
Save MarcScott/550ef8ee7d947039edc70fe482960397 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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