xoutil.eight.urllib - Compatibility to Python’s urllib module

Compatibility to Python’s urllib standard module.

Deprecated since version 2.0.0.

New in version 1.8.4.

urllib is maybe the hardest module to use from Python 2/3 compatible code. You may like to use Requests instead. In this implementation is used the module structure in Python 3 but only the functions that are already in both versions of Python are exposed for sure.

urllib is a package that collects several modules for working with URLs, in xoutil these structures are exposed inner xoutil.eight.urllib:

  • request for opening and reading URLs.
  • error` containing the exceptions raised by ``request
  • parse for parsing URLs.
  • robotparser for parsing robots.txt files