Skip to content

saimtec/News-App

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

#Streamlit News App

This project is a simple and functional News Web App built using Streamlit and NewsAPI.org. It allows users to explore the latest news from various categories and countries in real time.

The main goal of this project is to provide a clean and interactive way to stay updated with current events using a simple and lightweight Python-based interface.

#Features

Fetches live news data using the NewsAPI.org service. Option to browse news by category such as business, sports, health, and technology. Displays article titles, descriptions, sources, and publication dates. Uses a .env file to securely store the API key. The .env file is included in .gitignore to protect sensitive information.

#Technologies Used

Python 3 Streamlit Requests Python Dotenv NewsAPI.org

#Installation and Setup

Follow these steps to run the project on your local system.

  1. Clone the Repository git clone https://github.com/saimtec/news-app.git cd news-app

  2. Create a Virtual Environment python -m venv venv

Activate the environment: For Windows:

venv\Scripts\activate

For macOS/Linux:

source venv/bin/activate

  1. Install Required Packages pip install -r requirements.txt

  2. Add the API Key

Create a file named .env in the project folder and add your NewsAPI key like this:

NEWS_API_KEY=your_api_key_here

Make sure .env is listed in .gitignore so it doesn’t get uploaded to GitHub.

About

A simple news app with streamlit and news api

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages