Guess the syndication format of given arbitrary XML documents.
-
libearth.parser.heuristic.TYPE_ATOM(xml, feed_url, parse_entry=True)
(str) The document type value for Atom format.
(str) THe document type value for RSS 2.0 format.
-
libearth.parser.heuristic.get_format(document)
Guess the syndication format of an arbitrary document.
Parameters: | document (str) – document string to guess |