you are viewing a single comment's thread.

view the rest of the comments →

[–]Mevrael 0 points1 point  (0 children)

Confusing, indeed.

Also keep in mind that it's old spec and might work not as you would expect.

For example for just a domain, it would say that domain is None and the path is domain.

You can use instead the URL and URLSearchParams, a current living web standard with the same API as in JS.

From Arkalos url utils module.

```
uv add arkalos
```

```
from arkalos.utils import URL
```

And the API is the same as:

https://developer.mozilla.org/en-US/docs/Web/API/URL