|
| 1 | + |
| 2 | +<!DOCTYPE html> |
| 3 | + |
| 4 | +<html> |
| 5 | + <head> |
| 6 | + <meta charset="utf-8" /> |
| 7 | + <meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> |
| 8 | + |
| 9 | + <title>Exceptions — savepagenow documentation</title> |
| 10 | + <link rel="stylesheet" type="text/css" href="_static/pygments.css" /> |
| 11 | + <link rel="stylesheet" type="text/css" href="_static/alabaster.css" /> |
| 12 | + <link rel="stylesheet" type="text/css" href="_static/css/custom.css" /> |
| 13 | + <script data-url_root="./" id="documentation_options" src="_static/documentation_options.js"></script> |
| 14 | + <script src="_static/jquery.js"></script> |
| 15 | + <script src="_static/underscore.js"></script> |
| 16 | + <script src="_static/doctools.js"></script> |
| 17 | + <link rel="index" title="Index" href="genindex.html" /> |
| 18 | + <link rel="search" title="Search" href="search.html" /> |
| 19 | + <link rel="prev" title="Customizing the user agent" href="useragent.html" /> |
| 20 | + |
| 21 | + <link rel="stylesheet" href="_static/custom.css" type="text/css" /> |
| 22 | + |
| 23 | + |
| 24 | + <link rel="canonical" href="https://palewi.re/docs/savepagenow/exceptions.html"/> |
| 25 | + |
| 26 | + <meta name="viewport" content="width=device-width, initial-scale=0.9, maximum-scale=0.9" /> |
| 27 | + |
| 28 | + </head><body> |
| 29 | + |
| 30 | + |
| 31 | + <div class="document"> |
| 32 | + <div class="documentwrapper"> |
| 33 | + <div class="bodywrapper"> |
| 34 | + |
| 35 | + |
| 36 | + <div class="body" role="main"> |
| 37 | + |
| 38 | + <nav> |
| 39 | + <div class="row"> |
| 40 | + <div class="sevencol"> |
| 41 | + <div class="shingle"> |
| 42 | + <a href="https://palewi.re/"> |
| 43 | + <div rel="rnews:copyrightedBy rnews:hasSource rnews:providedBy"> |
| 44 | + <div about="http://palewi.re/" typeof="rnews:Organization"> |
| 45 | + <div property="rnews:name">palewire</div> |
| 46 | + </div> |
| 47 | + </div> |
| 48 | + </a> |
| 49 | + </div> |
| 50 | + </div> |
| 51 | + <div class="fivecol last links"> |
| 52 | + <ul> |
| 53 | + <li> |
| 54 | + <a href="http://palewi.re/posts/" title="Posts"> |
| 55 | + Posts |
| 56 | + </a> |
| 57 | + </li> |
| 58 | + <li> |
| 59 | + <a href="http://palewi.re/work/" title="Work"> |
| 60 | + Work |
| 61 | + </a> |
| 62 | + </li> |
| 63 | + <li> |
| 64 | + <a href="http://palewi.re/talks/" title="Talks"> |
| 65 | + Talks |
| 66 | + </a> |
| 67 | + </li> |
| 68 | + <li> |
| 69 | + <a href="http://palewi.re/docs/" title="Docs"> |
| 70 | + Docs |
| 71 | + </a> |
| 72 | + </li> |
| 73 | + <li> |
| 74 | + <a href="http://palewi.re/who-is-ben-welsh/" title="Who is Ben Welsh?"> |
| 75 | + About |
| 76 | + </a> |
| 77 | + </li> |
| 78 | + </ul> |
| 79 | + </div> |
| 80 | + </div> |
| 81 | +</nav> |
| 82 | +<div class="row topbar"> |
| 83 | + <div class="twelvecol last"></div> |
| 84 | +</div> |
| 85 | +<section id="exceptions"> |
| 86 | +<h1>Exceptions<a class="headerlink" href="#exceptions" title="Permalink to this headline">¶</a></h1> |
| 87 | +<p>Custom errors you can expect.</p> |
| 88 | +<span class="target" id="module-savepagenow.exceptions"></span><dl class="py exception"> |
| 89 | +<dt class="sig sig-object py" id="savepagenow.exceptions.BlockedByRobots"> |
| 90 | +<em class="property"><span class="pre">exception</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">savepagenow.exceptions.</span></span><span class="sig-name descname"><span class="pre">BlockedByRobots</span></span><a class="headerlink" href="#savepagenow.exceptions.BlockedByRobots" title="Permalink to this definition">¶</a></dt> |
| 91 | +<dd><p>Bases: <a class="reference internal" href="#savepagenow.exceptions.WaybackRuntimeError" title="savepagenow.exceptions.WaybackRuntimeError"><code class="xref py py-class docutils literal notranslate"><span class="pre">savepagenow.exceptions.WaybackRuntimeError</span></code></a></p> |
| 92 | +<p>Raised when archive.org has been blocked by the site’s robots.txt access control instructions.</p> |
| 93 | +</dd></dl> |
| 94 | + |
| 95 | +<dl class="py exception"> |
| 96 | +<dt class="sig sig-object py" id="savepagenow.exceptions.CachedPage"> |
| 97 | +<em class="property"><span class="pre">exception</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">savepagenow.exceptions.</span></span><span class="sig-name descname"><span class="pre">CachedPage</span></span><a class="headerlink" href="#savepagenow.exceptions.CachedPage" title="Permalink to this definition">¶</a></dt> |
| 98 | +<dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">Exception</span></code></p> |
| 99 | +<p>Raised when archive.org declines to make a new capture and instead returns the cached version of most recent archive.</p> |
| 100 | +</dd></dl> |
| 101 | + |
| 102 | +<dl class="py exception"> |
| 103 | +<dt class="sig sig-object py" id="savepagenow.exceptions.TooManyRequests"> |
| 104 | +<em class="property"><span class="pre">exception</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">savepagenow.exceptions.</span></span><span class="sig-name descname"><span class="pre">TooManyRequests</span></span><a class="headerlink" href="#savepagenow.exceptions.TooManyRequests" title="Permalink to this definition">¶</a></dt> |
| 105 | +<dd><p>Bases: <a class="reference internal" href="#savepagenow.exceptions.WaybackRuntimeError" title="savepagenow.exceptions.WaybackRuntimeError"><code class="xref py py-class docutils literal notranslate"><span class="pre">savepagenow.exceptions.WaybackRuntimeError</span></code></a></p> |
| 106 | +<p>Raised when archive.org when you have exceeded its throttle on request frequency. Slow it down.</p> |
| 107 | +</dd></dl> |
| 108 | + |
| 109 | +<dl class="py exception"> |
| 110 | +<dt class="sig sig-object py" id="savepagenow.exceptions.WaybackRuntimeError"> |
| 111 | +<em class="property"><span class="pre">exception</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">savepagenow.exceptions.</span></span><span class="sig-name descname"><span class="pre">WaybackRuntimeError</span></span><a class="headerlink" href="#savepagenow.exceptions.WaybackRuntimeError" title="Permalink to this definition">¶</a></dt> |
| 112 | +<dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">Exception</span></code></p> |
| 113 | +<p>An error returned by the Wayback Machine.</p> |
| 114 | +</dd></dl> |
| 115 | + |
| 116 | +</section> |
| 117 | + |
| 118 | + |
| 119 | + </div> |
| 120 | + <div class="related bottom"> |
| 121 | + |
| 122 | + <nav id="rellinks"> |
| 123 | + <ul> |
| 124 | + <li> |
| 125 | + ← |
| 126 | + <a href="useragent.html" title="Previous document">Customizing the user agent</a> |
| 127 | + </li> |
| 128 | + </ul> |
| 129 | + </nav> |
| 130 | + </div> |
| 131 | + |
| 132 | + </div> |
| 133 | + </div> |
| 134 | + <div class="sphinxsidebar" role="navigation" aria-label="main navigation"> |
| 135 | + <div class="sphinxsidebarwrapper"> |
| 136 | +<h1 class="logo"><a href="index.html">savepagenow</a></h1> |
| 137 | + |
| 138 | + |
| 139 | + |
| 140 | + |
| 141 | + |
| 142 | + |
| 143 | + |
| 144 | + |
| 145 | +<h3>Navigation</h3> |
| 146 | +<ul class="current"> |
| 147 | +<li class="toctree-l1"><a class="reference internal" href="install.html">Installation</a></li> |
| 148 | +<li class="toctree-l1"><a class="reference internal" href="python.html">Python Usage</a></li> |
| 149 | +<li class="toctree-l1"><a class="reference internal" href="cli.html">Command-line usage</a></li> |
| 150 | +<li class="toctree-l1"><a class="reference internal" href="useragent.html">Customizing the user agent</a></li> |
| 151 | +<li class="toctree-l1 current"><a class="current reference internal" href="#">Exceptions</a></li> |
| 152 | +</ul> |
| 153 | + |
| 154 | +<div class="relations"> |
| 155 | +<h3>Related Topics</h3> |
| 156 | +<ul> |
| 157 | + <li><a href="index.html">Documentation overview</a><ul> |
| 158 | + <li>Previous: <a href="useragent.html" title="previous chapter">Customizing the user agent</a></li> |
| 159 | + </ul></li> |
| 160 | +</ul> |
| 161 | +</div> |
| 162 | +<div id="searchbox" style="display: none" role="search"> |
| 163 | + <h3 id="searchlabel">Quick search</h3> |
| 164 | + <div class="searchformwrapper"> |
| 165 | + <form class="search" action="search.html" method="get"> |
| 166 | + <input type="text" name="q" aria-labelledby="searchlabel" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"/> |
| 167 | + <input type="submit" value="Go" /> |
| 168 | + </form> |
| 169 | + </div> |
| 170 | +</div> |
| 171 | +<script>$('#searchbox').show(0);</script> |
| 172 | + |
| 173 | + |
| 174 | + |
| 175 | + |
| 176 | + |
| 177 | + |
| 178 | + |
| 179 | + |
| 180 | + </div> |
| 181 | + </div> |
| 182 | + <div class="clearer"></div> |
| 183 | + </div> |
| 184 | + <div class="footer"> |
| 185 | + ©2022 Ben Welsh. |
| 186 | + |
| 187 | + | |
| 188 | + <a href="_sources/exceptions.md.txt" |
| 189 | + rel="nofollow">Page source</a> |
| 190 | + </div> |
| 191 | + |
| 192 | + |
| 193 | + |
| 194 | + |
| 195 | + </body> |
| 196 | +</html> |
0 commit comments