Python script used to provide current weather information for a valid user-provided city.
OpenWeather API was used to fetch weather forecast(s).
- Python
- requests (Python HTTP Library)
- OpenWeather API
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
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: