This is a simple Weather and News application built using Python and the Tkinter GUI library. The application allows users to get real-time weather information and relevant news articles based on the input city.
- Weather Information: Provides current weather details such as temperature, humidity, and wind speed for a specified city.
- News Integration: Fetches news articles related to the specified city using the News API.
- User-Friendly Interface: Simple and intuitive graphical user interface (GUI) built with Tkinter.
- Background Image: The application uses a background image to enhance visual appeal.
- Python 3.x
- Tkinter (usually included with Python)
pip install tk
pip install requests
pip install pillow
- Clone the repository or download the code files.
git clone https://github.com/PankajKrana/Weather_application.git
- Install the required libraries using
pip install -r requirements.txt
(if you have a requirements file). - Run the
weather_app.py
file.
- Launch the application.
- Enter the desired city in the provided input field.
- Click the "Get Weather & News" button to fetch weather information and news for the specified city.
- The weather information and news articles will be displayed on the interface.
- Optionally, click the "Show News" button to open a separate window displaying news articles in a larger text area.
Here is the screenshot of application
This project is licensed under the MIT License - see the LICENSE file for details.
- Weather data provided by WeatherAPI
- News articles provided by NewsAPI
- Icons and images used in the application are credited to their respective sources.