https://github.com/satheshrgs/py_yahoo
A Python Wrapper for Yahoo Weather
https://github.com/satheshrgs/py_yahoo
py-yahoo python-wrapper wrapper yahoo-weather
Last synced: 17 days ago
JSON representation
A Python Wrapper for Yahoo Weather
- Host: GitHub
- URL: https://github.com/satheshrgs/py_yahoo
- Owner: satheshrgs
- License: mit
- Created: 2018-01-19T06:40:33.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-01-23T05:01:54.000Z (about 8 years ago)
- Last Synced: 2025-12-16T11:26:03.371Z (3 months ago)
- Topics: py-yahoo, python-wrapper, wrapper, yahoo-weather
- Language: Python
- Size: 8.79 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# py_yahoo
A Python Wrapper for [Yahoo Weather API](https://developer.yahoo.com/weather/)
Documentation for the API is avilable [here](https://developer.yahoo.com/weather/documentation.html)
## Installation:
```
pip install py_yahoo
```
## Usage
```
from py_yahoo import YWeather
yw=YWeather()
#set the location
#check the yahoo weather website for the list of supported cities
yw.weatherat("avinashi")
#set the unit 'c'-->celsius 'f'-->fahrenheit(default)
yw.unit("c")
w=yw.getweather()
print(w.getatmosphere()) #{'humidity': '58', 'pressure': '1013.0', 'rising': '0', 'visibility': '16.1'}
```
## Methods
The following are the list of available methods
* getlastbuilddate()
* getatmosphere()
* forecast()
* getlatitude()
* getlongitude()
* getlocation()
* getunits()
* getastronomy()
* getwind()
* weatheratwhatdatetime()
* getstatus()
* gettemp()
## Terms
* [Yahoo APIs Terms of Use](https://policies.yahoo.com/us/en/yahoo/terms/product-atos/apiforydn/index.htm)