September 2026
1051 pages
35h 4m
English
A Uniform Resource Locator (URL) specifies a resource—for example, on the internet—by its location and the protocol to be used to access it.
The urllib package provides a convenient interface for handling resources on the internet. For this purpose, urllib contains the following modules (see Table 34.1).
|
Module |
Description |
Section |
|---|---|---|
|
urllib.request |
Contains functions and classes for accessing a resource on the internet |
|
|
urllib.response |
Contains the data types used in the urllib package |
– |
|
urllib.parse |
Contains functions for the convenient reading, processing, and creation of URLs |
|
|
urllib.error |
Contains the exception classes used in the urllib package |
– |
Read now
Unlock full access