Url constructor
init
Initializes a new instance of the Url with the specified URL.
def __init__(self, url):
...
| Parameter | Type | Description |
|---|
| url | str | The URL to process. |
Exceptions
| Exception | Description |
|---|
| Error | TypeError: 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):
...
| Parameter | Type | Description |
|---|
| url | str | The URL to process. |
| base_url | str | The base URL. |
Exceptions
| Exception | Description |
|---|
| Error | TypeError: raised if url or baseUrl cannot be parsed as valid URL. |
See Also