utils.feedgenerator.SyndicationFeed

class SyndicationFeed [source] Base class for all syndication feeds. Subclasses should provide write(). __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.

utils.feedgenerator.RssUserland091Feed

class RssUserland091Feed(RssFeed) [source] Spec: http://backend.userland.com/rss091

utils.feedgenerator.get_tag_uri()

get_tag_uri(url, date) [source] Creates a TagURI. See https://web.archive.org/web/20110514113830/http://diveintomark.org/archives/2004/05/28/howto-atom-id

utils.feedgenerator.Rss201rev2Feed

class Rss201rev2Feed(RssFeed) [source] Spec: https://cyber.law.harvard.edu/rss/rss.html

utils.feedgenerator.RssFeed

class RssFeed(SyndicationFeed) [source]

utils.feedgenerator.Enclosure

class Enclosure [source] Represents an RSS enclosure

utils.encoding.smart_str()

smart_str(s, encoding='utf-8', strings_only=False, errors='strict') Alias of smart_bytes() on Python 2 and smart_text() on Python 3. This function returns a str or a lazy string. For instance, this is suitable for writing to sys.stdout on Python 2 and 3.

utils.encoding.uri_to_iri()

uri_to_iri(uri) [source] Converts a Uniform Resource Identifier into an Internationalized Resource Identifier. This is an algorithm from section 3.2 of RFC 3987#section-3.2. Takes a URI in ASCII bytes and returns a unicode string containing the encoded result.

utils.encoding.smart_unicode()

smart_unicode(s, encoding='utf-8', strings_only=False, errors='strict') Historical name of smart_text(). Only available under Python 2.

utils.feedgenerator.Atom1Feed

class Atom1Feed(SyndicationFeed) [source] Spec: https://tools.ietf.org/html/rfc4287