Skip to main content

RSS / Atom Feed Format

Read RSS/Atom feeds as one dict per entry (via feedparser).

Overview

PropertyValue
Format idrss (aliases feed, atom)
ClassFeedIterable
Extensions.rss, .feed, .atom
ReadYes
WriteNo
Extrafeed (feedparser)
Maturitystable

Record shape

{
"title": "...",
"link": "https://...",
"published": "...",
"updated": "...",
"author": "...",
"summary": "...",
"content": ["..."],
"id": "...",
"tags": ["news"],
}

The first entry also includes feed_title, feed_link, and feed_description. totals() is the entry count.

Usage

from iterable import open_iterable

with open_iterable("blog.rss") as source:
for entry in source:
print(entry["title"], entry["link"])

Install with pip install iterabledata[feed].

See also