feedparser

Universal feed parser

Handles RSS 0.9x, RSS 1.0, RSS 2.0, CDF, Atom feeds

Visit http://feedparser.org/ for the latest version Visit http://feedparser.org/docs/ for the latest documentation

Required: Python 2.1 or later Recommended: Python 2.3 or later Recommended: CJKCodecs and iconv_codec <http://cjkpython.i18n.org/>


Attributes

a __contributors__

['Jason Diamond <http://injektilo.org/>',
 'John Beimler <http://john.beimler.org/>',
 'Fazal Majid <http://www.majid.info/mylos/weblog/>',
 'Aaron Swartz <http://aaronsw.com>']

a USER_AGENT

'UniversalFeedParser/3.3 +http://feedparser.org/'

a PREFERRED_XML_PARSERS

['drv_libxml2']

a ACCEPT_HEADER

'application/atom+xml,application/rdf+xml,application/rss+xml,application/x-netcdf,application/xml;q=0.9,text/xml;q=0.2,*/*;q=0.1'

a SUPPORTED_VERSIONS

{'': 'unknown',
 'atom': 'Atom (unknown version)',
 'atom01': 'Atom 0.1',
 'atom02': 'Atom 0.2',
 'atom03': 'Atom 0.3',
 'cdf': 'CDF',
 'hotrss': 'Hot RSS',
 'rss': 'RSS (unknown version)',
 'rss090': 'RSS 0.90',
 'rss091n': 'RSS 0.91 (Netscape)',
 'rss091u': 'RSS 0.91 (Userland)',
 'rss092': 'RSS 0.92',
 'rss093': 'RSS 0.93',
 'rss094': 'RSS 0.94',
 'rss10': 'RSS 1.0',
 'rss20': 'RSS 2.0'}

Functions

f registerDateHandler(func) ...

Register a date handler function (takes string, returns 9-tuple date in GMT)

f parse(url_file_stream_or_string, etag=None, modified=None, agent=None, referrer=None, handlers=[]) ...

Parse a feed from a URL, file, stream, or string

Classes

C CharacterEncodingOverride(...) ...

This class contains 2 members.

C CharacterEncodingUnknown(...) ...

This class contains 2 members.

C NonXMLContentType(...) ...

This class contains 2 members.

C FeedParserDict(...) ...

This class contains 15 members.

See the source for more information.