THIS REPO HAS THE WEATHER DETIALS DISPLAYED USIGNG API CALL
This repository contains a simple Python script that fetches and displays weather data for a given location using the OpenWeatherMap API. The script is designed to be easy to use and understand, making it a great starting point for beginners interested in working with APIs in Python.
- Fetches weather data for a specified location.
- Displays the current temperature, humidity, and weather description.
- Uses the OpenWeatherMap API for accurate and up-to-date weather information.
- Python 3.x installed on your system.
- An API key from OpenWeatherMap. You can sign up for a free account on their website to get one.
- Clone this repository to your local machine.
- Install the requests library if you haven't already. You can do this by running
pip install requests
in your terminal.
- Open the
weather_fetcher.py
file in your favorite text editor. - Replace the placeholder API key with your actual OpenWeatherMap API key.
- Run the script by executing
python weather_fetcher.py
in your terminal. - Follow the prompt to enter the location for which you want to fetch the weather data.