Skip to content

Rhushya/weather-using-python-api-call-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

weather-fetcher-using-python-api-call-

THIS REPO HAS THE WEATHER DETIALS DISPLAYED USIGNG API CALL

Weather Fetcher

Overview

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.

Features

  • 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.

Prerequisites

  • 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.

Installation

  1. Clone this repository to your local machine.
  2. Install the requests library if you haven't already. You can do this by running pip install requests in your terminal.

Usage

  1. Open the weather_fetcher.py file in your favorite text editor.
  2. Replace the placeholder API key with your actual OpenWeatherMap API key.
  3. Run the script by executing python weather_fetcher.py in your terminal.
  4. Follow the prompt to enter the location for which you want to fetch the weather data.

About

THIS REPO HAS THE WEATHER DETIALS DISPLAYED USIGNG API CALL

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published