Skip to main content

Python library for yahoo weather new API

Project description

Python Library for Yahoo Weather New API

Since 3,Jan 2019 yahoo has changed its Weather API with Oauth1 Authentication. This new method has added an authentication to use the API. This library helps you to handle the new API. In order to use the new API you have to get API key from YAHOO

from yahoo_weather import yahoo_weather
from yahoo_weather.config.units import Unit

data = Yahoo_Weather(APP_ID="Your App ID",
                     apikey="Your API KEY",
                     apisecret="Your API secret")
data.get_yahoo_weather_by_city("tehran", Unit.celsius)
print(data.condition.text)
print(data.condition.temperature)
data.get_yahoo_weather_by_location(35.67194, 51.424438)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

yahoo_weather-1.0.4.tar.gz (5.0 kB view hashes)

Uploaded Source

Built Distribution

yahoo_weather-1.0.4-py3-none-any.whl (13.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page