arrow_backProjects
PERSONAL•2025•Duccio Meconcelli

GitHub Trending RSS Generator

PythonBeautifulSoup4AtomRSSStatic HTML
§ 00 // ABSTRACT

A lightweight Python feed generator that scrapes GitHub Trending repositories across languages and time windows (daily, weekly, monthly) into static Atom XML feeds and a browsable HTML directory.

GitHub Trending RSS Generator is a Python reimplementation of mshibanami/GitHubTrendingRSS designed to convert GitHub’s trending repository rankings into standard Atom/RSS feeds without requiring a persistent backend server.

GitHub Trending RSS Generator banner
Static Atom feed generation across programming languages and trending intervals

Scraping & Syndication Pipeline

GitHub does not expose an official RSS endpoint for its Trending pages. The generator bridges this gap through a self-contained static build pipeline (src/main.py) built on requests, BeautifulSoup4, and python-dateutil:

  • Multi-Language & Multi-Horizon Harvesting: Iterates over target programming languages (plus all_languages) across all three trending horizons (daily, weekly, and monthly), optionally authenticating requests via REPO_GITHUB_TOKEN to avoid rate limits.
  • Deterministic Atom XML Emission: Serializes repository metadata—title, owner, description, language tag, star velocity, and canonical repository URL—into standards-compliant XML files following the feeds/{language}_{period}.xml naming convention.
  • Static Index Generation: Builds a standalone index.html catalog linking every language and frequency variant for one-click subscription in feed readers or automated Telegram/webhook aggregators.
feeds/
├── all_languages_daily.xml
├── python_daily.xml
├── python_weekly.xml
├── rust_monthly.xml
└── ...

Zero-Runtime Deployment

Because the entire output consists of static XML and HTML files, the generator is designed to run on a scheduled cron job or CI workflow and publish directly to any static hosting provider (such as GitHub Pages or an S3 bucket), keeping infrastructure and dependency overhead minimal.

Resources