Skip to main content

Yahoo Weather in Python

Project description


This library uses yql queries to get the weather from Yahoo.


The easy way to install is:

pip install pyql-weather


Download the pyql-weather-0.1.tar.gz file, decompress it, and run:

python install


Here we have 2 ways to use this library.

Example 1.

Using directly the WOEID.

from import Weather
# Pass the WOEID:
w = Weather(24553062)
# Read the results:
print "Temperatura: %sc. Estatus: (%s) %s"%(w.get_temperature(), w.get_status_code(), w.get_status_text())

Example 2.

Using Latitude and Longitude data.

from import Weather, GeoData
# Get an GeoData object passing latitude and longitude:
latitude = "20.982994"
longitude = "-89.617710"
geo = GeoData(latitude, longitude) # Inicializamos el objeto
# Pass the WOEID:
w = Weather(geo.get_woeid())
# Read the results:
print "Temperatura: %sc. Estatus: %s"%(w.get_temperature(), w.get_status_text())


Alex Dzul. Python & Django Developer.


Project details

Download files

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

Files for pyql-weather, version 0.1
Filename, size File type Python version Upload date Hashes
Filename, size pyql-weather-0.1.tar.gz (3.5 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page