This is similar to urlparse(), but does not split the params from the URL. This should generally be used instead of urlparse() if the more recent URL syntax allowing parameters to be applied to each segment of the path portion of the URL (see RFC 2396) is wanted. A separate function is needed to separate the path segments and parameters. This function returns a 5-item named tuple:
urllib.parse.urlsplit(urlstring, scheme='', allow_fragments=True)
(addressing scheme, network location, path, query, fragment identifier).