sumanpitla / Weather_API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Weather Details Program

This program uses the OpenWeatherMap API to fetch and display weather details for a given city.

Getting Started

Prerequisites

  • Python 3.x
  • requests library

Installation

  1. Clone the repository:
    git clone https://github.com/your-username/weather-details.git
  2. Install the requests library if you haven't already:
    pip install requests
  3. Obtain an API key from OpenWeatherMap.
  4. Add your API key to the key variable in the script.

Usage

  1. Run the script:
    python weather_details.py
  2. Enter the name of the city for which you want to fetch weather details.

Example

$ python weather_details.py
enter your city name: London
Here are the London Weather details:

License

This project is licensed under the MIT License - see the LICENSE file for details.

About


Languages

Language:Python 100.0%