RSS Integrations: Automating Content Feeds for Data Workflows
How RSS and Atom feeds work as a machine-readable source of updates, and how to poll, parse, deduplicate, and route new feed items into data pipelines, alerts, and AI summaries.
TL;DR — An RSS integration polls a web feed, parses its items, and acts on the new ones. Orchestration adds the parts a script lacks: a schedule, deduplication between runs, retries, and routing to Slack, storage, or AI.
APIs and streaming get most of the attention, but RSS is still one of the simplest machine-readable sources of “what’s new” on the web. Blogs, news sites, status pages, release notes, and government data portals publish feeds in one of two standard formats, RSS 2.0 or Atom, instead of a different API per site.
This article covers how RSS and Atom feeds work, what a production pipeline around a feed needs, and how to build one with Kestra that polls a feed, skips items it has already seen, and acts on the new ones.
How RSS Integrations Work: The Enduring Power of Syndication
RSS (Really Simple Syndication) and its sibling, Atom, are XML-based web feed formats designed for publishing frequently updated content. The RSS 2.0 specification and Atom (RFC 4287) define their structure. An RSS feed is simply a structured XML file that a website makes available. This file contains a list of recent items, each with a standardized set of metadata.
A typical RSS 2.0 feed structure includes:
- A single
<channel>element that contains metadata about the feed itself. - Multiple
<item>elements, where each item represents a single piece of content like a blog post, news article, or podcast episode. - Within each
<item>, you’ll find tags like<title>,<link>,<description>,<pubDate>(publication date), and<guid>(a globally unique identifier for the item).
The power of RSS for automation lies in this simplicity and standardization. While modern APIs are powerful, they are also bespoke. Integrating with ten different APIs requires learning ten different authentication methods, endpoint structures, and data schemas. In contrast, feeds come in two formats. RSS 2.0 and Atom differ in element names (item, guid, pubDate in RSS; entry, id, updated in Atom), so a parser either handles both or relies on a library such as feedparser. This makes RSS a low-overhead way to monitor content from many sources. For systems that need to know “what’s new?” on a regular basis, polling an RSS feed is often far more straightforward than web scraping or managing complex API contracts.
Why RSS Feeds Need Orchestration: Beyond Simple Aggregation
Consuming an RSS feed is easy, but building a reliable production data pipeline around it introduces several challenges that simple scripts or aggregators don’t solve. This is where data orchestration becomes critical.
- Scheduled Polling: Feeds need to be checked regularly. An orchestrator can run a workflow on a reliable cron-based schedule. A feed keeps only its most recent items, so poll more often than that window turns over, or posts can drop out before you see them.
- Deduplication: When you poll a feed, you only want to process new items. A naive script might re-process every item in the feed on each run. An orchestrated workflow can use a key-value store to remember which items it has processed, so each post is handled once in normal runs. Delivery is at-least-once: a failure between the action and the state write repeats the action on the next run.
- Error Handling and Retries: What happens if a website is temporarily down or the feed is malformed? An orchestrator can automatically retry failed HTTP requests with backoff delays and alert you only when a problem is persistent.
- Parsing and Transformation: RSS feeds contain raw data. An orchestration task can parse the XML, extract the relevant fields, clean the data (e.g., stripping HTML from descriptions), and structure it as JSON for downstream systems.
- Conditional Logic and Routing: Not every new item may be important. An orchestrator can apply conditional logic (for example, acting only when an item’s title contains a keyword) and route the data to different destinations.
- Downstream Actions: Once a new item is identified, the real work begins. Orchestration connects the RSS source to any number of actions: writing to a database, uploading to cloud storage, calling another API, sending a Slack notification, or triggering an AI summarization pipeline.
Without orchestration, you are left to build and maintain all this complex state management, scheduling, and error-handling logic yourself.
Orchestrate RSS Integrations with Kestra: Building a Content Ingestion Pipeline
The following workflow checks the Kestra blog’s feed (https://kestra.io/rss.xml) every 30 minutes, keeps the posts it has not seen before in a JSON file, sends a Slack notification with their titles, and stores the GUIDs it has seen in the KV store for the next run. Kestra has no dedicated RSS plugin; the feed is downloaded over HTTP and parsed with Python’s standard library. The script reads RSS 2.0 only; an Atom feed needs entry and id instead of item and guid.
id: rss_content_ingestionnamespace: company.team
triggers: - id: every_30_minutes type: io.kestra.plugin.core.trigger.Schedule cron: "*/30 * * * *"
tasks: - id: get_seen_guids type: io.kestra.plugin.core.kv.Get key: kestra_blog_seen_guids errorOnMissing: false
- id: download_feed type: io.kestra.plugin.core.http.Download uri: https://kestra.io/rss.xml retry: type: exponential maxAttempts: 3 interval: PT30S maxInterval: PT5M
- id: find_new_items type: io.kestra.plugin.scripts.python.Script taskRunner: type: io.kestra.plugin.scripts.runner.docker.Docker containerImage: python:3.12-slim inputFiles: feed.xml: "{{ outputs.download_feed.uri }}" env: SEEN_GUIDS: "{{ outputs.get_seen_guids.value ?? '' }}" outputFiles: - new_posts.json script: | import json import os import xml.etree.ElementTree as ET
MAX_SEEN = 500 seen = json.loads(os.environ["SEEN_GUIDS"] or "[]") first_run = not seen seen_set = set(seen)
items = [] for item in ET.parse("feed.xml").getroot().findall(".//item"): guid = (item.findtext("guid") or item.findtext("link") or "").strip() if guid: items.append({ "title": item.findtext("title"), "link": item.findtext("link"), "pubDate": item.findtext("pubDate"), "guid": guid, })
# RSS does not define item order, so compare against every GUID seen so far. # On the first run, mark the whole feed as seen without notifying. new_items = [] if first_run else [i for i in items if i["guid"] not in seen_set]
current = [i["guid"] for i in items] current_set = set(current) seen = current + [g for g in seen if g not in current_set] seen = seen[:max(MAX_SEEN, len(current))]
with open("new_posts.json", "w") as f: json.dump(new_items, f)
outputs = { "new_item_count": len(new_items), "seen_guids": json.dumps(seen), "titles": " | ".join(i["title"] or "" for i in new_items)[:1500], } print("::" + json.dumps({"outputs": outputs}) + "::")
- id: if_new_items_found type: io.kestra.plugin.core.flow.If condition: "{{ outputs.find_new_items.vars.new_item_count > 0 }}" then: - id: notify_on_slack type: io.kestra.plugin.slack.notifications.SlackIncomingWebhook url: "{{ secret('SLACK_WEBHOOK_URL') }}" payload: | {{ {"text": outputs.find_new_items.vars.new_item_count ~ " new post(s) on the Kestra blog: " ~ outputs.find_new_items.vars.titles} | toJson }}
- id: update_seen_guids type: io.kestra.plugin.core.kv.Set key: kestra_blog_seen_guids value: "{{ outputs.find_new_items.vars.seen_guids }}"What’s worth noticing in this flow:
- Stateful Deduplication: RSS does not define item order (
kestra.io/rss.xmllists its oldest post first), so the script compares every item with the set of GUIDs stored in the KV store instead of stopping at the last one seen. It falls back tolinkwhen an item has noguid, caps the set at 500 GUIDs plus everything still in the feed, and on the first run marks the whole feed as seen without notifying. - At-Least-Once Delivery: The GUID set is written after the notification, so a failed notification is retried on the next schedule. If the KV write fails after Slack succeeds, the same posts are sent again.
- State Passed Through
env: The stored GUIDs reach the script as an environment variable, not as an expression written into the Python source, so a GUID containing quotes cannot break the script. - Decoupled Logic: The Python script only parses and filters. Scheduling, the HTTP download with retries, state, and notification are handled by Kestra plugins.
- Conditional Execution: The
Iftask sends the Slack notification only when new items are found; the KV update runs on every execution. - Structured Outputs: The script prints a
::{"outputs": ...}::line to passnew_item_count,seen_guids, and the titles to later tasks, andnew_posts.jsonis kept as an output file for storage or an AI step.
Ready to orchestrate your data pipelines?
Where RSS Integrations Pay Off: Practical Use Cases
By treating RSS as a programmatic data source, you can build a wide range of automated workflows:
- Content Curation and Archiving: Automatically ingest articles from hundreds of sources, filter them by keyword, and archive them in a data warehouse or cloud storage for analysis.
- Competitor and News Monitoring: Create alerts that notify your team via Slack or email whenever a competitor publishes a new blog post or a specific topic appears in the news.
- AI Summarization Pipelines: Feed new articles directly into an AI model to generate daily or weekly news digests for internal distribution. The AI RSS News Digest blueprint provides a ready-made example.
- Triggering Analytical Workflows: Use a new item in an RSS feed, such as a government data release, as a trigger to launch a complex data processing and analytical pipeline.
- Automated Social Media Posting: Automatically share relevant new content from trusted sources to your company’s social media accounts, with an approval step for human oversight.
- Data Pipeline Monitoring: Ingest status updates from tools that provide an RSS feed for their incident reports, helping you automate your data pipeline monitoring and response system.
Related Concepts
- Kestra: Open Source Declarative Orchestration Platform
- Data Engineering Resources and Guides
- Event-Driven Orchestration
- Kestra Plugins: Extending Orchestration Capabilities
Treated as a data source, an RSS feed is one of the cheapest ways to follow many sites at once: a standard format, a schedule, and a record of what has already been processed.
Your data pipelines, orchestrated end to end.
Related resources
Frequently asked questions
Find answers to your questions right here, and don't hesitate to Contact Us if you couldn't find what you're looking for.