libearth.parser.rss2 — RSS 2.0 parser¶
Parsing RSS 2.0 feed.
-
libearth.parser.rss2.guess_default_tzinfo(root, url)¶ Guess what time zone is implied in the feed by seeing the TLD of the
urland its<language>tag.
-
libearth.parser.rss2.parse_rss(xml, feed_url=None, parse_entry=True)¶ Parse RSS 2.0 XML and translate it into Atom.
To make the feed data valid in Atom format,
idandlink[rel=self]fields would become the url of the feed.If
pubDateis not present,updatedfield will be from the latest entry’supdatedtime, or the time it’s crawled instead.Parameters: Returns: a pair of (
Feed, crawler hint)Return type: