libearth.parser.rss2 — RSS 2.0 parser¶
Parsing RSS 2.0 feed.
-
libearth.parser.rss2.parse_rss2(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: