CityInsight is a Python application that integrates weather and news information, providing city-centric insights. It is built with Streamlit and offers real-time weather updates and top headlines tailored to your chosen city.
Currently deployed at CityInsight.
CityInsight combines OpenWeatherMap and NewsAPI to deliver a comprehensive view of your city's current conditions and the latest news.
-
Weather Insights:
- Real-time weather data retrieval using OpenWeatherMap API.
- Displays current weather conditions, temperature, wind speed, and humidity.
-
News Highlights:
- Fetches top headlines from NewsAPI.
- Provides details such as title, description, publication date, and content for each news article.
-
Installation:
- Clone the repository.
git clone https://github.com/Vikranth3140/CityInsight.git
- Install required dependencies
pip install -r requirements.txt
-
API Configuration:
- Obtain API keys from OpenWeatherMap and NewsAPI.
- Replace placeholders in the script (
api_key_weather
andapi_key_news
) with your actual keys.
-
Run the Application:
- Execute the Streamlit app
streamlit run cityinsight.py
- Enter the desired city name and choose the temperature unit ('metric' or 'imperial').
-
View Insights:
- The application will display real-time weather information and top news headlines tailored to your selected city.
- Python 3.x
- Streamlit
- Requests library
- Keep your API keys confidential and do not share them publicly.
- Ensure an active internet connection for accurate data retrieval.
This project is licensed under the MIT License.