Install & Compatibility
Where this runs
tested against v2.2.1 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.126s · 17.9MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 1.5s · import 0.118s · 18MB
16MB installed
● package 16MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
SyndicationFeed
✓ from feedgenerator import SyndicationFeed
Main class for both RSS and Atom
Rss201rev2Feed
✓ from feedgenerator import Rss201rev2Feed
✗ from feedgenerator import RSSFeed
Use Rss201rev2Feed, not non-existent RSSFeed
Atom1Feed
✓ from feedgenerator import Atom1Feed
Atom 1.0 feed class
Create RSS and Atom feeds with optional link to feed URL.
from feedgenerator import SyndicationFeed
feed = SyndicationFeed(
title='My Blog',
link='https://example.com/',
description='A blog about stuff',
feed_url='https://example.com/feed.xml',
author_name='Author',
language='en'
)
feed.add_item(
title='First Post',
link='https://example.com/first-post',
pubdate=datetime(2026, 5, 1),
description='This is my first post.'
)
rss = feed.writeString('rss')
atom = feed.writeString('atom')
print(rss)
print(atom)
Errors
Common errors & fixes
ImportError: cannot import name 'SyndicationFeed' from 'feedgenerator'
Misspelled or wrong package name; some users confuse with 'feedgen' or 'feedparser'.
fixUse 'from feedgenerator import SyndicationFeed' after installing feedgenerator.
AttributeError: 'NoneType' object has no attribute 'strftime'
pubdate or updateddate not set or set to None when item is added.
fixProvide a valid datetime object to pubdate parameter.
TypeError: writeString() missing 1 required positional argument: 'feedtype'
writeString expects 'rss' or 'atom' argument.
fixCall feed.writeString('rss') or feed.writeString('atom'). Upgrade
Version history
2.2.1latest on PyPI · released Aug 17, 2025
Audit
Dependencies
pytzoptionalRequired on Windows for timezone support