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
url
and 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,
id
andlink[rel=self]
fields would become the url of the feed.If
pubDate
is not present,updated
field will be from the latest entry’supdated
time, or the time it’s crawled instead.Parameters: Returns: a pair of (
Feed
, crawler hint)Return type: