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.
Links
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.5.zip
(5.9 kB
view details)
File details
Details for the file yahooweather-0.5.zip
.
File metadata
- Download URL: yahooweather-0.5.zip
- Upload date:
- Size: 5.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ba3c909e99ca4a5112144ec115c533ce84c50ad4422ac1de6cd43370aff09bb2 |
|
MD5 | afd3c13ec7c7f6074cb18ce28ecadd73 |
|
BLAKE2b-256 | 0dcff09deb6db84ac407b4b7cbd8c09cb379f6baa57b553a421dd974f61bff60 |