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.RssFeed

class RssFeed(SyndicationFeed) [source]

utils.feedgenerator.Rss201rev2Feed

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

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.Enclosure

class Enclosure [source] Represents an RSS enclosure

utils.feedgenerator.Atom1Feed

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

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.encoding.smart_text()

smart_text(s, encoding='utf-8', strings_only=False, errors='strict') [source] Returns a text object representing s – unicode on Python 2 and str on Python 3. Treats bytestrings using the encoding codec. If strings_only is True, don’t convert (some) non-string-like objects.