blob: 4eb0040655f0735afd2fa31c94c1028a5c677f0d (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
<span id="urllib-url-handling-modules"></span><h1>urllib — URL handling modules</h1> <p><strong>Source code:</strong> <a class="reference external" href="https://github.com/python/cpython/tree/3.12/Lib/urllib/">Lib/urllib/</a></p> <p><code>urllib</code> is a package that collects several modules for working with URLs:</p> <ul class="simple"> <li>
<a class="reference internal" href="urllib.request#module-urllib.request" title="urllib.request: Extensible library for opening URLs."><code>urllib.request</code></a> for opening and reading URLs</li> <li>
<a class="reference internal" href="urllib.error#module-urllib.error" title="urllib.error: Exception classes raised by urllib.request."><code>urllib.error</code></a> containing the exceptions raised by <a class="reference internal" href="urllib.request#module-urllib.request" title="urllib.request: Extensible library for opening URLs."><code>urllib.request</code></a>
</li> <li>
<a class="reference internal" href="urllib.parse#module-urllib.parse" title="urllib.parse: Parse URLs into or assemble them from components."><code>urllib.parse</code></a> for parsing URLs</li> <li>
<a class="reference internal" href="urllib.robotparser#module-urllib.robotparser" title="urllib.robotparser: Load a robots.txt file and answer questions about fetchability of other URLs."><code>urllib.robotparser</code></a> for parsing <code>robots.txt</code> files</li> </ul> <div class="_attribution">
<p class="_attribution-p">
© 2001–2023 Python Software Foundation<br>Licensed under the PSF License.<br>
<a href="https://docs.python.org/3.12/library/urllib.html" class="_attribution-link">https://docs.python.org/3.12/library/urllib.html</a>
</p>
</div>
|