Skip to content

Blake Rayvid

Menu
  • About
  • Portfolio
Menu

Based News Reader

Posted on April 19, 2025June 18, 2025 by Blake

This Python script fetches the latest Google News RSS headlines for a user-supplied list of topics and regularly updates a static HTML page. Google Gemini prioritizes the headlines based on the user’s preferences. Designed to be scheduled with cron on any Unix-based system.

🗞️ news.blakerayvid.com

How It Works

  • History Tracking
    Sent headlines are stored locally to prevent duplicates in future emails.

  • Fetch Articles
    For each user-defined topic, the script pulls recent headlines using Google News RSS.

  • Filter Old Content
    Headlines that have appeared in recent digests are skipped to avoid repetition.

  • User Preferences
    The user provides a list of topics and keywords, each with a score from 1 to 5 indicating importance. There’s also support for banned or demoted topics.

  • Prioritization with Gemini
    Headlines are passed to Gemini, which selects a small set of topics and headlines based on the user’s ranked preferences.

View on GitHub

Tags: LLMs, Netlify, NLTK, Python
Categories: Data Science, Optimization

Post navigation

← TQQQ Trading Algorithm
SOAP: Social Polling →

Categories

  • Apps
  • Data Science
  • Exploration
  • Finance
  • Health
  • Interactive
  • Optimization

Tags

D3 Desmos Flask JavaScript JQuery LLMs MATLAB Matplotlib Netlify NLTK Node NumPy P5 Pandas PostgreSQL Python QuantConnect Railway Scikit-Learn SciPy SQLAlchemy Vader YFinance

© 2025 Blake Rayvid. All rights reserved.