urlparse(url, scheme='', allow_fragments=1)
this is what we should use urlparse(url, scheme='', allow_fragments=1)
Parse a URL into 6 components:
Return a 6-tuple: (scheme, netloc, path, params, query, fragment).
Note that we don't break the components up in smaller bits
(e.g. netloc is a single string) and we don't expand % escapes.
No comments:
Post a Comment