Skip to content

Python script used to provide current weather information for a valid user-provided city.

Notifications You must be signed in to change notification settings

malcolmrichardson/weather-forecast-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

weather-forecast-python

Python script used to provide current weather information for a valid user-provided city.

OpenWeather API was used to fetch weather forecast(s).

Tools used:

  • Python
  • requests (Python HTTP Library)
  • OpenWeather API

Installation/Setup

Run the below:

mkdir weather-forecast-python
cd weather-forecast-python

git clone git clone https://github.com/malcolmrichardson/weather-forecast-python.git
cd weather-forecast-python

virtualenv venv
source venv/bin/activate

pip install -r requirements.txt

python app.py

Notes

Create an OpenWeather API account and request a free API key. Replace the 'API_KEY' variable in app.py with your API key, before running.

See terminal for results.

Enjoy and thank you!

Sample output below:

sample_output

About

Python script used to provide current weather information for a valid user-provided city.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages