Communitygithub.com

RSS / Atom Feed Reader

Parst einen RSS 2.0- oder Atom-Feed in normalisierte Item-Dictionaries (Titel, Link, ID, Veröffentlichungsdatum, Zusammenfassung) – nur mit der Standardbibliothek, ohne Feedparser. Verwende dies, wenn der Benutzer einen RSS/Atom-Feed lesen, einen Blog-/News-Feed abfragen, Feed-Einträge extrahieren oder eine Website überwachen möchte, die einen Feed veröffentlicht.

Was ist Atom Feed Reader?

Diese Fähigkeit ermöglicht es einem KI-Agenten, RSS 2.0- oder Atom-Feeds mit der Python-Standardbibliothek – genauer gesagt `xml.etree.ElementTree` – zu parsen, ohne auf externe Abhängigkeiten wie feedparser angewiesen zu sein. Sie normalisiert beide Feed-Formate in einen einheitlichen Satz von Dictionaries mit den Schlüsseln `title`, `link`, `id`, `published` und `summary`. Downstream-Code (für Deduplizierung, Zusammenfassungen, Benachrichtigungen) muss daher nicht nach Feed-Typ verzweigen. Die Fähigkeit eignet sich für Szenarien wie Blog-Feed-Überwachung, Aggregation oder das Extrahieren der neuesten Beiträge. Für vollständige Kompatibilität mit fehlerhaften Dialekten sollte jedoch weiterhin `feedparser` verwendet werden. Referenzimplementierung in `assets/feed.py`.

Funktioniert mit~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/baronguyen001/ai-automation-skills/tree/HEAD/skills/rss-feed-reader

In Ihrer bevorzugten KI fragen

Öffnet einen neuen Chat, in dem dieser Agent-Skill bereits geladen ist.

Dokumentation

Was macht Atom Feed Reader?

Verwende diese Fähigkeit, wenn ein Skript einen Feed lesen und eine normalisierte Struktur für RSS 2.0 und Atom erhalten soll – ohne Abhängigkeit von Drittanbietern. Es führt einen einzigen ElementTree-Durchlauf aus und extrahiert title, link, id, published und summary aus beiden Formaten, sodass nachgelagerter Code (Deduplizierung, Zusammenfassung, Benachrichtigung) nie nach Feed-Typ verzweigen muss.

Wann aufrufen

  • Benutzer sagt: „Diesen RSS-Feed lesen“, „Blog-Feed abfragen“, „Neueste Einträge aus einem Atom-Feed holen“, „Website auf neue Beiträge überwachen“.
  • Code hat bereits Feed-Bytes abgerufen und benötigt strukturierte Einträge.

Wann NICHT aufrufen

  • Die Quelle hat eine echte JSON-API – rufe diese auf, anstatt einen Feed zu scrapen.
  • Du benötigst die vollständige Fehlerbehandlung von feedparser (jeder fehlerhafte Dialekt) – installiere feedparser.

Konkretes Beispiel

Benutzereingabe:

Lese https://example.com/feed.xml und gib jeden Beitragstitel und Link aus.

Ausgabe:

# Kopiere assets/feed.py in dein Projekt, dann:
from urllib.request import urlopen
from feed import parse_feed

with urlopen("https://example.com/feed.xml", timeout=20) as r:
    for item in parse_feed(r.read()):
        print(item["title"], "->", item["link"])

Jeder Eintrag ist ein Dictionary mit denselben Schlüsseln, unabhängig davon, ob der Feed RSS oder Atom ist. Deduplizierung per id und Sortierung nach published funktionieren ohne Spezialfälle.

Muster zum Anwenden

  1. Parse einmal mit xml.etree.ElementTree; iteriere über item (RSS) und {atom}entry (Atom).
  2. Normalisiere auf einen stabilen Schlüsselsatz, sodass der Rest der Pipeline Feed-Format-unabhängig ist.
  3. Fallback von guid/Atom-id auf den Link, damit jeder Eintrag eine stabile Identität zur Deduplizierung hat.
  4. Halte Netzwerk aus dem Parser heraus: Übergib Bytes/Text, damit er rein und testbar bleibt.

Referenz: assets/feed.py.

Quelle

Destilliert aus den Nachrichten-Aggregationsprojekten des Autors. v1.0.0. Siehe auch: [[gmail-imap-digest]], [[sqlite-state]], [[pipeline-orchestrator]].

→ Baue den vollständig ausführbaren Bot mit Trawlkit.

Individual skills in this repo

This repo contains 9 individual skills — each has its own dedicated page.

baronguyen001/ai-automation-skills

Schedule any script to run on a recurring schedule on Windows (Task Scheduler) or Linux (cron) - register, list, and remove jobs from one command, with logging to a file and a guard against overlapping runs. Use for schedule a script, run nightly, set up a cron job, windows task scheduler, or run on a timer.

baronguyen001/ai-automation-skills

Turn a run's list of result dicts into a schema'd CSV and a Markdown table from one column spec - declare columns once, emit both, with stable ordering and safe escaping, stdlib only, no pandas. Use when the user asks to write results to CSV, export a report, make a markdown summary table, or save a run's output as a spreadsheet.

baronguyen001/ai-automation-skills

Strip HTML to clean plain text with the standard library only (no BeautifulSoup/lxml): drops script/style, turns block tags into line breaks, and collapses whitespace. Use when the user wants readable text from an HTML page/email, to clean scraped HTML before sending it to an LLM, or to build a text index from web content.

baronguyen001/ai-automation-skills

Persist records between scheduled runs as append-only JSON Lines (one object per line) with streaming reads and optional key-based dedup, stdlib only. Use when the user wants to log run results to JSONL, append events to a file, dedup records by id across runs, or keep a simple durable history without a database.

baronguyen001/ai-automation-skills

Extract text and simple table-like rows from a PDF for downstream AI without OCR binaries. Use when the user asks to read a PDF, turn a PDF into text, pull simple tables from statements/reports, or feed PDF content into an LLM pipeline.

baronguyen001/ai-automation-skills

Rotate a pool of HTTP/SOCKS proxies with round-robin selection, failure tracking, and a cooldown that benches dead proxies before retrying. BYO proxy list via env - none are shipped. Use for rotate proxies, spread requests across proxies, avoid IP bans, retry through a different proxy, or proxy health check.

baronguyen001/ai-automation-skills

Upload and download run artifacts from S3-compatible storage with BYO bucket and credentials from env. Use when the user asks to store scraper output, archive reports, publish artifacts to object storage, fetch a prior run file, or use MinIO/R2/Spaces/S3 without hardcoding credentials.

baronguyen001/ai-automation-skills

Draft a short-form TikTok/Reels/Shorts or long-form video script from a topic and creator persona file - hook variants, beat-structured body, CTA, b-roll cues, caption overlays, and [STORY]/[NUMBER] slots so the model never fabricates personal facts. Use for write a video script, tiktok script, youtube script, or /shortform-script.

baronguyen001/ai-automation-skills

Give scheduled scripts memory between runs with one SQLite file - a seen-set for dedup, a key/value cursor to resume where you left off, and order-preserving new-item filtering. Use for dedup across runs, don't re-alert the same item, remember the last id, resume a scraper, or persist state between cron runs.

Verwandte Skills