Skip to content

Extracts the current weather conditions of a place from a string

License

Notifications You must be signed in to change notification settings

iamnottheway/WeX

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Wex : Python weather extractor 🌎🌞☁️

Weather Extractor(Wex) is a python library which uses NLP to give you the weather forecast. You give it a string and it gives you the data.

Wex is built for Weather Bots. A Weather Bot can figure out what the text says.Wex is built to make it easier for people to build weatherbots which can get the weather.

##Usage

from Extractor import Wex

weather = Wex.WexWeather("Whats the weather in London?","[API-Key]")

print(weather.WexGetWeather())
            

##Output

['Clouds', -1.11, 1033.36, 86, 20]

The list contains weather, temperature(c), pressure,humidity,cloud cover

##Requirements

  • GeoText for python2 or python3

    Installing GeoText for python2

    pip install geotext

    for python3

    pip3 install geotext

  • API key from OpenWeather. Create an account and use the API key to use WeX.

(c) 2017 Joel Benjamin

Releases

No releases published

Packages

No packages published

Languages