Package CPSRSS :: Module feedparser
[show private | hide private]
[frames | no frames]

Module CPSRSS.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: libxml2 <http://xmlsoft.org/python.html>
Classes
FeedParserDict  

Exceptions
CharacterEncodingOverride  
CharacterEncodingUnknown  

Function Summary
  parse(url_file_stream_or_string, etag, modified, agent, referrer, handlers)
Parse a feed from a URL, file, stream, or string

Variable Summary
str __author__ = 'Mark Pilgrim <http://diveintomark.org/>'
list __contributors__ = ['Jason Diamond <http://injektilo.org...
str __copyright__ = 'Copyright 2002-4, Mark Pilgrim'
str __license__ = 'Python'
str __version__ = '3.2'
str ACCEPT_HEADER = 'application/atom+xml,application/rdf+xm...
list PREFERRED_XML_PARSERS = ['drv_libxml2']
tuple python_version = (2, 4)
dict SUPPORTED_VERSIONS = {'': 'unknown', 'cdf': 'CDF', 'rss0...
int TIDY_MARKUP = 0                                                                     
str USER_AGENT = 'UniversalFeedParser/3.2 +http://feedparser...

Function Details

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

Variable Details

__author__

Type:
str
Value:
'Mark Pilgrim <http://diveintomark.org/>'                              

__contributors__

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

__copyright__

Type:
str
Value:
'Copyright 2002-4, Mark Pilgrim'                                       

__license__

Type:
str
Value:
'Python'                                                               

__version__

Type:
str
Value:
'3.2'                                                                  

ACCEPT_HEADER

Type:
str
Value:
'application/atom+xml,application/rdf+xml,application/rss+xml,applicat\
ion/x-netcdf,application/xml;q=0.9,text/xml;q=0.2,*/*;q=0.1'           

PREFERRED_XML_PARSERS

Type:
list
Value:
['drv_libxml2']                                                        

python_version

Type:
tuple
Value:
(2, 4)                                                                 

SUPPORTED_VERSIONS

Type:
dict
Value:
{'': '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)',
...                                                                    

TIDY_MARKUP

Type:
int
Value:
0                                                                     

USER_AGENT

Type:
str
Value:
'UniversalFeedParser/3.2 +http://feedparser.org/'                      

Generated by Epydoc 2.1 on Mon Jun 27 12:47:50 2005 http://epydoc.sf.net