urlunparse(partsconstructs url string from tuple-representation of url as returned by urlparse(parts must be tuple or iterable with six components urlsplit(url [default_scheme [allow_fragments]]the same as urlparse(except that the parameters portion of url is left unmodified in the path this allows for parsing of urls where parameters might be attached to individual path components such as 'scheme://netloc/path ;param /path ;param /path ?query#fragmentthe result is an instance of splitresultwhich is named tuple containing (schemenetlocpathqueryfragmentthe following read-only attributes are also definedattribute description scheme netloc path query fragment username url scheme specifier (for example'http'netloc specifier (for example'www python org'hierarchical path (for example'/index html'query string (for example'name=dave&id= 'fragment identifier without the leading '#username component if the netloc specifier is of the form 'username:password@hostnamepassword component from the netloc specifier host name component from the netloc specifier port number from the netloc specifier if it is of the form 'hostname:portr password hostname port splitresult instance can be turned back into url string using geturl(urlunsplit(partsconstructs url from the tuple-representation created by urlsplit(parts is tuple or iterable with the five url components urldefrag(urlreturns tuple (newurlfragmentwhere newurl is url stripped of fragments and fragment is string containing the fragment part (if anyif there are no fragments in urlthen newurl is the same as url and fragment is an empty string urljoin(baseurl [allow_fragments]constructs an absolute url by combining base urlbasewith relative url url allow_fragments has the same meaning as for urlparse(if the last component of the base url is not directoryit' stripped parse_qs(qs [keep_blank_values [strict_parsing]]parses url-encoded (mime type application/ -www-form-urlencodedquery string qs and returns dictionary where the keys are the query variable names and the values are lists of values defined for each name keep_blank_values is boolean flag lib fl ff