### Navigation

- index
- modules |
- next |
- previous |
- Python »
- 3.5.2 Documentation »
- The Python Standard Library »
- 21. Internet Protocols and Support »

# 21.5. `urllib` — URL handling modules

Source code: Lib/urllib/

`urllib` is a package that collects several modules for working with URLs:

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

### Navigation

- index
- modules |
- next |
- previous |
- Python »
- 3.5.2 Documentation »
- The Python Standard Library »
- 21. Internet Protocols and Support »