
## __init__ {#str}

Initializes a new instance of the [`Url`](/svg/python-net/aspose.svg/url) with the specified URL.



```python
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__ {#str-str}

Initializes a new instance of the [`Url`](/svg/python-net/aspose.svg/url) with the specified URL
and base URL.



```python
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
* module [`aspose.svg`](../../)
* class [`Url`](/svg/python-net/aspose.svg/url)
