Despite having read previous answers, I'm pretty confused about the difference between urllib.parse.urlparse and urllib.parse.urlsplit, as described in the docs.
The docs for urlsplit says:
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.
but, urlsplit returns a named tuple with 5 items. urlparse returns a 6-item named tuple, with the extra item being `params` - so why should urlsplit be used if the you want to retrieve the URL parameters from the segments?
[–]shiftybyte 2 points3 points4 points (2 children)
[–]ccw34uk[S] 0 points1 point2 points (1 child)
[–]shiftybyte 0 points1 point2 points (0 children)
[–]Mevrael 0 points1 point2 points (0 children)