Latest News Filter and Notifier
Welcome to the Latest News Filter and Notifier! π Keep yourself updated with the latest news in the easiest way possible. Whether youβre into tech, fashion, sports, or any other topic, this project lets you stay informed with customized news updates and concise content summaries.
Default category is Technology, but you can change it to any topic you like (e.g., health, business, entertainment).
Not all βtechβ news is actually about tech. Our built-in AI filters ensure you get relevant, high-quality articles.
Donβt have time to read long articles? The project summarizes news into easy-to-read, concise content so you can stay informed in just 30 seconds.
All filtered news articles are stored in AWS DynamoDB with their content and status for easy management and tracking.
The project keeps you up-to-date by notifying you whenever new, relevant articles are available.
-
main.py: For a straightforward execution.
-
lg_app.py: The LangGraph-powered version, offering a modular, state-based workflow for advanced use cases.
Hereβs a breakdown of the project directory:
.
βββ main.py # The simple version of the application
βββ lg_app.py # The LangGraph-powered version
βββ nodes/ # State nodes for LangGraph
β βββ db_node.py
β βββ filter_tech_article.py
β βββ generate_article.py
β βββ generate_prompt.py
β βββ state_manager.py
βββ utils/ # Utility functions and classes
β βββ aws_utils.py
β βββ base_utils_class.py
β βββ data_utils.py
βββ README.md
Using the NewsData API, the project fetches the latest news articles from the selected category (default: technology).
Articles are passed to an AI agent to identify the most relevant ones for your chosen category.
Filtered articles are summarized into concise, engaging pieces that you can read in half a minute. AI ensures summaries are simple, understandable, and free of clutter.
Filtered articles are stored in AWS DynamoDB with their summaries and status. Notifications ensure youβre always updated.
- Python 3.12+
- AWS account with DynamoDB configured
- NewsData API key
- Groq API key
- Clone this repository:
git clone https://github.com/your-repo/latest-news-filter.git
cd latest-news-filter
- Install dependencies:
pip install -r requirements.txt
- Configure environment variables: Create a .env file with the following variables:
NEWS_API_KEY=your_newsdata_api_key
GROQ_API_KEY=your_groq_api_key
AWS_REGION=your_aws_region
AWS_ACCESS_KEY=your_aws_access_key
AWS_SECRET_KEY=your_aws_secret_key
DYNAMODB_TABLE=TechNews
- Simple Mode
python main.py
- LangGraph Mode
python lg_app.py
- Scalable and Modular
Whether youβre a beginner or an advanced user, this project is easy to use and extend.
- Stay Updated
Get personalized, summarized news updates every day without spending hours scrolling.
- AI-Powered Precision
Leverages cutting-edge AI for content filtering and summarization.
- Customizable
Easily switch categories to focus on what matters to you.
We love contributions! If you have ideas to improve this project or want to fix something, feel free to fork the repo and create a pull request.
This project uses external APIs and services. Ensure you comply with their terms of use.
Enjoy staying informed effortlessly with Latest News Filter and Notifier! π