Skip to main content

a Python module that provides an interface to the Yahoo! Weather RSS feed.

Project description

Python modul for access to yahoo! weather

Example

import logging
from yahooweather import YahooWeather, UNIT_C

logging.basicConfig(level=logging.WARNING)

yweather = YahooWeather(91543049, UNIT_C)
if yweather.updateWeather():
    print("RawData: %s" % str(yweather.RawData))
    print("Units: %s" % str(yweather.Units))
    print("Now: %s" % str(yweather.Now))
    print("Forecast: %s" % str(yweather.Forecast))
    print("Wind: %s" % str(yweather.Wind))
    print("Atmosphere: %s" % str(yweather.Atmosphere))
    print("Astronomy: %s" % str(yweather.Astronomy))

    data = yweather.Now
    print("Weather image from current: %s" %
          yweather.getWeatherImage(data["code"]))

    print("The woeid from Gstaad is: %s" % get_woeid(46.475661, 7.283469))
else:
    print("Can't read data from yahoo!")

Rate Limits

Use of the Yahoo Weather API should not exceed reasonable request volume. Access is limited to 2,000 signed calls per day.

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

yahooweather-0.10.tar.gz (3.8 kB view details)

Uploaded Source

File details

Details for the file yahooweather-0.10.tar.gz.

File metadata

  • Download URL: yahooweather-0.10.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for yahooweather-0.10.tar.gz
Algorithm Hash digest
SHA256 eace866194cc2483002e10790a82460bb675e197dd321141a978ff3b9fad5d2f
MD5 45d87b49bd6f412e0ed2e4fe4b52f2b6
BLAKE2b-256 b0507627a5f2aa9d733c409d72e68cd757fbc84dfd0b35cf49ab6c732816a5d6

See more details on using hashes here.

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