ID EN
Urllib Request

FancyURLopener

Python 3.11

FancyURLopener subclasses URLopener providing default handling for the following HTTP response codes: 301, 302, 303, 307 and 401. For the 30x response codes listed above, the Location header is used to fetch the actual URL. For 401 response codes (authentication required), basic HTTP authentication is performed. For the 30x response codes, recursion is bounded by the value of the maxtries attribute, which defaults to 10.

Syntax

PYTHON
class urllib.request.FancyURLopener(...)

See Also

FancyURLopener URLopener http_error_default() urllib URLopener FancyURLopener prompt_user_passwd() FancyURLopener