Program: Python_open_weather_map_API.py
Author: D. Damian
This program will use OpenWeatherMap One Call API and obtain the weather data for a city of your choice. It will print the result in the shell.
- Python 3.8.2
- IDLE
- Create a free account and get a free API key from https://openweathermap.org/api
- Clone the python script to your local machine using git clone https://github.com/Seeker3000/OpenWeatherMap
- Open the file "Python_open_weather_map_API.py" with your favorite file editor and place the key in the appid_private = "your key"
- Save and close the file.
- Get the list of cities by downloading the json file city.list.json.gz from http://bulk.openweathermap.org/sample/
- Extract it in the same folder as "Python_open_weather_map_API.py"
- Run the "Python_open_weather_map_API.py" with your favorite command line tool (like IDLE or command shell)
Stars and forks are welcomed :)
Cheers!
Python_open_weather_map_API Copyright © 2020 Seeker3000