Url constructor

init

Initializes a new instance of the Url with the specified URL.

def __init__(self, url):
    ...
ParameterTypeDescription
urlstrThe URL to process.

Exceptions

ExceptionDescription
ErrorTypeError: raised if url cannot be parsed as valid URL.

init

Initializes a new instance of the Url with the specified URL and base URL.

def __init__(self, url, base_url):
    ...
ParameterTypeDescription
urlstrThe URL to process.
base_urlstrThe base URL.

Exceptions

ExceptionDescription
ErrorTypeError: raised if url or baseUrl cannot be parsed as valid URL.

See Also