Python Β· Shipped
Sends a daily AI and tech news digest to your inbox using Python, the NewsAPI, and Gmail.
A fully automated Python-based email digest that fetches, filters, formats, and sends daily AI/ML/NVIDIA news from trusted sources β straight to your inbox.
Built for personal use now. Designed for multi-user Flask expansion later.
7:30 AMdaily-news-mailer/
β
βββ main.py # Pipeline entry point
βββ .env # Secrets: API key, email credentials
β
βββ news/
β βββ fetch.py # Fetches articles per topic
β βββ filter.py # Deduplicates and filters articles
β
βββ emailer/
β βββ format_html.py # Converts articles to styled HTML
β βββ send.py # Sends HTML email securely
β
βββ scheduler/
β βββ job.py # Runs `main.py` daily at 07:30
β
βββ config/
β βββ settings.py # Loads environment variables
β
βββ requirements.txt # Project dependencies
βββ README.md # You're here
git clone https://github.com/your-username/daily-news-mailer.git
cd daily-news-mailer
python -m venv venv
venv\Scripts\activate # On Windows
source venv/bin/activate # On macOS/Linux
pip install -r requirements.txt
.env #NEWS_API_KEY=your_newsapi_key
EMAIL_ADDRESS=your_gmail@gmail.com
EMAIL_PASSWORD=your_16_char_app_password
β οΈ Make sure 2FA is enabled on your Gmail and youβre using an App Password.
python -m scheduler.job
Keeps running and waits until 07:30 every day. You can deploy it as a background job or cloud task later.
As this project evolves, I plan to expand it into a full Flask-based multi-user system.
requests + schedule + smtplibdotenv for secure configNewsAPI.org for real-time headlines"π§ Your Daily AI Digest"
Includes 3 sections:NVIDIA,GenAI, andML Researchβ formatted with modern HTML cards and safe links.
MIT License. Use freely and modify for your own use cases.
Ahmad Tawil
Backend & AI-focused Software Engineer
GitHub @AhmadTawil1