python-project/python-3.7.4-docs-html/_sources/library/urllib.rst.txt

16 lines
466 B
Plaintext
Raw Normal View History

2019-07-15 11:16:41 -05:00
:mod:`urllib` --- URL handling modules
======================================
.. module:: urllib
**Source code:** :source:`Lib/urllib/`
--------------
``urllib`` is a package that collects several modules for working with URLs:
* :mod:`urllib.request` for opening and reading URLs
* :mod:`urllib.error` containing the exceptions raised by :mod:`urllib.request`
* :mod:`urllib.parse` for parsing URLs
* :mod:`urllib.robotparser` for parsing ``robots.txt`` files