utils.feedgenerator.SyndicationFeed.__init__()

__init__(title, link, description, language=None, author_email=None, author_name=None, author_link=None, subtitle=None, categories=None, feed_url=None, feed_copyright=None, feed_guid=None, ttl=None, **kwargs) [source] Initialize the feed with the given dictionary of metadata, which applies to the entire feed. Any extra keyword arguments you pass to __init__ will be stored in self.feed. All parameters should be Unicode objects, except categories, which should be a sequence of Unicode objects.

utils.feedgenerator.SyndicationFeed.writeString()

writeString(encoding) [source] Returns the feed in the given encoding as a string.

utils.feedgenerator.SyndicationFeed.write()

write(outfile, encoding) [source] Outputs the feed in the given encoding to outfile, which is a file-like object. Subclasses should override this.

utils.feedgenerator.SyndicationFeed.root_attributes()

root_attributes() [source] Return extra attributes to place on the root (i.e. feed/channel) element. Called from write().

utils.feedgenerator.SyndicationFeed.num_items()

num_items() [source]

utils.feedgenerator.SyndicationFeed.latest_post_date()

latest_post_date() [source] Returns the latest pubdate or updateddate for all items in the feed. If no items have either of these attributes this returns the current date/time.

utils.feedgenerator.SyndicationFeed.item_attributes()

item_attributes(item) [source] Return extra attributes to place on each item (i.e. item/entry) element.

utils.feedgenerator.SyndicationFeed.add_root_elements()

add_root_elements(handler) [source] Add elements in the root (i.e. feed/channel) element. Called from write().

utils.feedgenerator.SyndicationFeed.add_item_elements()

add_item_elements(handler, item) [source] Add elements on each item (i.e. item/entry) element.

utils.feedgenerator.SyndicationFeed.add_item()

add_item(title, link, description, author_email=None, author_name=None, author_link=None, pubdate=None, comments=None, unique_id=None, enclosure=None, categories=(), item_copyright=None, ttl=None, updateddate=None, enclosures=None, **kwargs) [source] Adds an item to the feed. All args are expected to be Python unicode objects except pubdate and updateddate, which are datetime.datetime objects, enclosure, which is an Enclosure instance, and enclosures, which is a list of Enclosure instances.