<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>version — feedparser 5.1.3 documentation</title> <link rel="stylesheet" href="_static/default.css" type="text/css" /> <link rel="stylesheet" href="_static/pygments.css" type="text/css" /> <link rel="stylesheet" href="_static/feedparser.css" type="text/css" /> <script type="text/javascript"> var DOCUMENTATION_OPTIONS = { URL_ROOT: '', VERSION: '5.1.3', COLLAPSE_INDEX: false, FILE_SUFFIX: '.html', HAS_SOURCE: true }; </script> <script type="text/javascript" src="_static/jquery.js"></script> <script type="text/javascript" src="_static/underscore.js"></script> <script type="text/javascript" src="_static/doctools.js"></script> <link rel="top" title="feedparser 5.1.3 documentation" href="index.html" /> <link rel="up" title="Reference" href="reference.html" /> <link rel="next" title="Documentation license" href="license.html" /> <link rel="prev" title="status" href="reference-status.html" /> </head> <body> <div class="related"> <h3>Navigation</h3> <ul> <li class="right" style="margin-right: 10px"> <a href="genindex.html" title="General Index" accesskey="I">index</a></li> <li class="right" > <a href="license.html" title="Documentation license" accesskey="N">next</a> |</li> <li class="right" > <a href="reference-status.html" title="status" accesskey="P">previous</a> |</li> <li><a href="index.html">feedparser 5.1.3 documentation</a> »</li> <li><a href="reference.html" accesskey="U">Reference</a> »</li> </ul> </div> <div class="document"> <div class="documentwrapper"> <div class="bodywrapper"> <div class="body"> <div class="section" id="version"> <span id="reference-version"></span><h1><tt class="xref py py-attr docutils literal"><span class="pre">version</span></tt><a class="headerlink" href="#version" title="Permalink to this headline">ΒΆ</a></h1> <p>The format and version of the feed.</p> <p>Here is the complete list of known feed types and versions that may be returned in <tt class="xref py py-attr docutils literal"><span class="pre">version</span></tt>:</p> <table border="1" class="docutils"> <colgroup> <col width="13%" /> <col width="88%" /> </colgroup> <tbody valign="top"> <tr class="row-odd"><td><tt class="docutils literal"><span class="pre">atom</span></tt></td> <td>Atom (unknown or unrecognized version)</td> </tr> <tr class="row-even"><td><tt class="docutils literal"><span class="pre">atom01</span></tt></td> <td><a class="reference external" href="http://www.intertwingly.net/blog/1506.html">Atom 0.1</a></td> </tr> <tr class="row-odd"><td><tt class="docutils literal"><span class="pre">atom02</span></tt></td> <td><a class="reference external" href="http://diveintomark.org/public/2003/08/atom02spec.txt">Atom 0.2</a></td> </tr> <tr class="row-even"><td><tt class="docutils literal"><span class="pre">atom03</span></tt></td> <td><a class="reference external" href="http://www.mnot.net/drafts/draft-nottingham-atom-format-02.html">Atom 0.3</a></td> </tr> <tr class="row-odd"><td><tt class="docutils literal"><span class="pre">atom10</span></tt></td> <td><a class="reference external" href="http://www.ietf.org/rfc/rfc4287">Atom 1.0</a></td> </tr> <tr class="row-even"><td><tt class="docutils literal"><span class="pre">cdf</span></tt></td> <td><a class="reference external" href="http://www.w3.org/TR/NOTE-CDFsubmit.html">CDF</a></td> </tr> <tr class="row-odd"><td><tt class="docutils literal"><span class="pre">rss</span></tt></td> <td><abbr title="Rich Site Summary">RSS</abbr> (unknown or unrecognized version)</td> </tr> <tr class="row-even"><td><tt class="docutils literal"><span class="pre">rss090</span></tt></td> <td><a class="reference external" href="http://www.purplepages.ie/RSS/netscape/rss0.90.html">RSS 0.90</a></td> </tr> <tr class="row-odd"><td><tt class="docutils literal"><span class="pre">rss091n</span></tt></td> <td><a class="reference external" href="http://my.netscape.com/publish/formats/rss-spec-0.91.html">Netscape RSS 0.91</a></td> </tr> <tr class="row-even"><td><tt class="docutils literal"><span class="pre">rss091u</span></tt></td> <td><a class="reference external" href="http://backend.userland.com/rss091">Userland RSS 0.91</a></td> </tr> <tr class="row-odd"><td><tt class="docutils literal"><span class="pre">rss092</span></tt></td> <td><a class="reference external" href="http://backend.userland.com/rss092">RSS 0.92</a></td> </tr> <tr class="row-even"><td><tt class="docutils literal"><span class="pre">rss093</span></tt></td> <td><a class="reference external" href="http://backend.userland.com/rss093">RSS 0.93</a></td> </tr> <tr class="row-odd"><td><tt class="docutils literal"><span class="pre">rss094</span></tt></td> <td><abbr title="Rich Site Summary">RSS</abbr> 0.94 (no accurate specification is known to exist)</td> </tr> <tr class="row-even"><td><tt class="docutils literal"><span class="pre">rss10</span></tt></td> <td><a class="reference external" href="http://purl.org/rss/1.0/">RSS 1.0</a></td> </tr> <tr class="row-odd"><td><tt class="docutils literal"><span class="pre">rss20</span></tt></td> <td><a class="reference external" href="http://blogs.law.harvard.edu/tech/rss">RSS 2.0</a></td> </tr> </tbody> </table> <p>If the feed type is completely unknown, <tt class="xref py py-attr docutils literal"><span class="pre">version</span></tt> will be an empty string.</p> <div class="admonition tip"> <p class="first admonition-title">Tip</p> <p class="last">This element always exists, although it may be an empty string if the version can not be determined.</p> </div> <div class="admonition-see-also admonition seealso"> <p class="first admonition-title">See also</p> <dl class="last docutils"> <dt><a class="reference external" href="http://web.archive.org/web/20110726002019/http://diveintomark.org/archives/2004/02/04/incompatible-rss">The Myth of RSS compatibility</a></dt> <dd>Mark Pilgrim’s excellent analysis of the extraordinary variety of incompatibilities each version of “RSS” introduced.</dd> </dl> </div> </div> </div> </div> </div> <div class="sphinxsidebar"> <div class="sphinxsidebarwrapper"> <h4>Previous topic</h4> <p class="topless"><a href="reference-status.html" title="previous chapter"><tt class="docutils literal docutils literal docutils literal"><span class="pre">status</span></tt></a></p> <h4>Next topic</h4> <p class="topless"><a href="license.html" title="next chapter">Documentation license</a></p> <h3>This Page</h3> <ul class="this-page-menu"> <li><a href="_sources/reference-version.txt" rel="nofollow">Show Source</a></li> </ul> <div id="searchbox" style="display: none"> <h3>Quick search</h3> <form class="search" action="search.html" method="get"> <input type="text" name="q" /> <input type="submit" value="Go" /> <input type="hidden" name="check_keywords" value="yes" /> <input type="hidden" name="area" value="default" /> </form> <p class="searchtip" style="font-size: 90%"> Enter search terms or a module, class or function name. </p> </div> <script type="text/javascript">$('#searchbox').show(0);</script> </div> </div> <div class="clearer"></div> </div> <div class="related"> <h3>Navigation</h3> <ul> <li class="right" style="margin-right: 10px"> <a href="genindex.html" title="General Index" >index</a></li> <li class="right" > <a href="license.html" title="Documentation license" >next</a> |</li> <li class="right" > <a href="reference-status.html" title="status" >previous</a> |</li> <li><a href="index.html">feedparser 5.1.3 documentation</a> »</li> <li><a href="reference.html" >Reference</a> »</li> </ul> </div> <div class="footer"> © Copyright 2004-2008 Mark Pilgrim, 2010-2012 Kurt McKee. Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.1.3. </div> </body> </html>