This script fetches the latest Google News RSS headlines for a user-supplied list of topics and regularly updates a static HTML page hosted on Netlify. Google Gemini prioritizes the headlines based on the user’s preferences. Designed to be scheduled with cron
on any Unix-based system.
How It Works
- Fetch Articles
The user provides a list of topics and keywords, each with a score from 1 to 5 indicating importance. For each topic, the script pulls recent headlines using Google News RSS. There’s also support for banned and demoted keywords.
- History Tracking
Posted headlines are recorded to prevent duplicate content.
- Prioritization with Gemini
Candidate articles are passed to Gemini, which selects a small subset, delivering only the most interesting content to the user.