Previous topic

libearth.parser.autodiscovery — Autodiscovery

Next topic

libearth.parser.rss2 — RSS 2.0 parser

This Page

libearth.parser.heuristic — Guessing

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.

libearth.parser.heuristic.TYPE_RSS2(xml, feed_url=None, parse_entry=True)

(str) THe document type value for RSS 2.0 format.


Guess the syndication format of an arbitrary document.

Parameters:document (str) – document string to guess
Fork me on GitHub