Python urllib Functions
EditRocket provides the following information on urllib functions in the Python source code builder.
pathname2url(path) - Convert the pathname path from the local syntax for a path to the form used in the path component of a URL.
quote(string[, safe]) - Replace special characters in string using the "%xx" escape.
quote_plus(string[, safe]) - Like quote(), but also replaces spaces by plus signs, as required for quoting HTML form values.
unquote(string) - Replace "%xx" escapes by their single-character equivalent.
unquote_plus(string) - Like unquote(), but also replaces plus signs by spaces, as required for unquoting HTML form values.
url2pathname(path) - Convert the path component path from an encoded URL to the local syntax for a path.
urlcleanup() - Clear the cache that may have been built up by previous calls to urlretrieve().
urlencode(query[, doseq]) - Convert a mapping object or a sequence of two-element tuples to a ``url-encoded'' string, suitable to pass to urlopen() above as the optional data argument.
urlopen(url[, data[, proxies]]) - Open a network object denoted by a URL for reading.
urlretrieve(url[, filename[, reporthook[, data]]]) - Copy a network object denoted by a URL to a local file, if necessary.