<!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>TorDNSEL Exit Lists — Stem 1.1.0 documentation</title> <link rel="stylesheet" href="../../_static/haiku.css" type="text/css" /> <link rel="stylesheet" href="../../_static/pygments.css" type="text/css" /> <link rel="stylesheet" href="../../_static/print.css" type="text/css" /> <script type="text/javascript"> var DOCUMENTATION_OPTIONS = { URL_ROOT: '../../', VERSION: '1.1.0', 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> <script type="text/javascript" src="../../_static/theme_extras.js"></script> <link rel="shortcut icon" href="../../_static/favicon.png"/> <link rel="top" title="Stem 1.1.0 documentation" href="../../index.html" /> <link rel="up" title="Contents" href="../../contents.html" /> <link rel="next" title="Descriptor Exporter" href="export.html" /> <link rel="prev" title="Router Status Entries" href="router_status_entry.html" /> </head> <body> <div class="header"><img class="rightlogo" src="../../_static/logo.png" alt="Logo"/><h1 class="heading"><a href="../../index.html"> <span>Stem Docs</span></a></h1> <h2 class="heading"><span>TorDNSEL Exit Lists</span></h2> </div> <div class="topnav"> <p> <ul id="navbar"> <li><a href="../../index.html">Home</a></li> <li><a href="../../tutorials.html">Tutorials</a> <ul> <li><a href="../../tutorials/the_little_relay_that_could.html">Hello World</a></li> <li><a href="../../tutorials/to_russia_with_love.html">Client Usage</a></li> <li><a href="../../tutorials/tortoise_and_the_hare.html">Event Listening</a></li> <li><a href="../../tutorials/mirror_mirror_on_the_wall.html">Tor Descriptors</a></li> <li><a href="../../tutorials/east_of_the_sun.html">Utilities</a></li> <li><a href="../../tutorials/double_double_toil_and_trouble.html">Examples</a></li> </ul> </li> <li><a href="../../api.html">API</a> <ul> <li><a href="../control.html">stem.control</a></li> <li><a href="../connection.html">stem.connection</a></li> <li><a href="../socket.html">stem.socket</a></li> <li><a href="../process.html">stem.process</a></li> <li><a href="../response.html">stem.response</a></li> <li><a href="../exit_policy.html">stem.exit_policy</a></li> <li><a href="../version.html">stem.version</a></li> <li><a href="../../api.html#descriptors">Descriptors</a></li> <li><a href="../../api.html#utilities">Utilities</a></li> </ul> </li> <li><a href="https://trac.torproject.org/projects/tor/wiki/doc/stem">Development</a> <ul> <li><a href="../../faq.html">FAQ</a></li> <li><a href="../../change_log.html">Change Log</a></li> <li><a href="https://trac.torproject.org/projects/tor/wiki/doc/stem/bugs">Bug Tracker</a></li> <li><a href="../../download.html">Download</a></li> </ul> </li> </ul> </p> </div> <div class="content"> <div class="section" id="module-stem.descriptor.tordnsel"> <span id="tordnsel-exit-lists"></span><h1>TorDNSEL Exit Lists<a class="headerlink" href="#module-stem.descriptor.tordnsel" title="Permalink to this headline">¶</a></h1> <p>Parsing for <a class="reference external" href="https://www.torproject.org/projects/tordnsel.html.en">TorDNSEL</a> exit list files.</p> <dl class="class"> <dt id="stem.descriptor.tordnsel.TorDNSEL"> <em class="property">class </em><tt class="descclassname">stem.descriptor.tordnsel.</tt><tt class="descname">TorDNSEL</tt><big>(</big><em>raw_contents</em>, <em>validate</em><big>)</big><a class="reference internal" href="../../_modules/stem/descriptor/tordnsel.html#TorDNSEL"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#stem.descriptor.tordnsel.TorDNSEL" title="Permalink to this definition">¶</a></dt> <dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">stem.descriptor.Descriptor</span></tt></p> <p>TorDNSEL descriptor (<a class="reference external" href="https://www.torproject.org/tordnsel/exitlist-spec.txt">exitlist specification</a>)</p> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Variables:</th><td class="field-body"><ul class="first last simple"> <li><strong>fingerprint</strong> (<em>str</em>) – <strong>*</strong> authority’s fingerprint</li> <li><strong>published</strong> (<em>datetime</em>) – <strong>*</strong> time in UTC when this descriptor was made</li> <li><strong>last_status</strong> (<em>datetime</em>) – <strong>*</strong> time in UTC when the relay was seen in a v2 network status</li> <li><strong>exit_addresses</strong> (<em>list</em>) – <strong>*</strong> list of (str address, datetime date) tuples consisting of the found IPv4 exit address and the time</li> </ul> </td> </tr> </tbody> </table> <p><strong>*</strong> attribute is either required when we’re parsed with validation or has a default value, others are left as <strong>None</strong> if undefined</p> </dd></dl> </div> </div> <div class="bottomnav"> </div> <div class="footer"> </div> </body> </html>