Rss201rev2Feed


Attributes

a mime_type

'application/rss+xml'

Methods

f __init__(self, title, link, description, language=None, author_email=None, author_name=None, author_link=None, subtitle=None, categories=None, feed_url=None) ...

f add_item(self, title, link, description, author_email=None, author_name=None, author_link=None, pubdate=None, comments=None, unique_id=None, enclosure=None, categories=()) ...

Adds an item to the feed.

All args are expected to be Python Unicode objects except pubdate, which is a datetime.datetime object, and enclosure, which is an instance of the Enclosure class.

f num_items(self) ...

f writeString(self, encoding) ...

Returns the feed in the given encoding as a string.

f latest_post_date(self) ...

Returns the latest item's pubdate.

If none of them have a pubdate, this returns the current date/time.

f write(self, outfile, encoding) ...

f endChannelElement(self, handler) ...

f write_items(self, handler) ...

See the source for more information.