Lines Matching refs:urlparse
1 :mod:`urlparse` --- Parse URLs into components
4 .. module:: urlparse
16 The :mod:`urlparse` module is renamed to :mod:`urllib.parse` in Python 3.
20 **Source code:** :source:`Lib/urlparse.py`
39 The :mod:`urlparse` module defines the following functions:
42 .. function:: urlparse(urlstring[, scheme[, allow_fragments]])
52 >>> from urlparse import urlparse
53 >>> o = urlparse('http://www.cwi.nl:80/%7Eguido/Python.html')
65 Following the syntax specifications in :rfc:`1808`, urlparse recognizes
70 >>> from urlparse import urlparse
71 >>> urlparse('//www.cwi.nl:80/%7Eguido/Python.html')
74 >>> urlparse('www.cwi.nl/%7Eguido/Python.html')
77 >>> urlparse('help/Python.html')
119 See section :ref:`urlparse-result-object` for more information on the result
178 Construct a URL from a tuple as returned by ``urlparse()``. The *parts* argument
187 This is similar to :func:`urlparse`, but does not split the params from the URL.
188 This should generally be used instead of :func:`urlparse` if the more recent URL
220 See section :ref:`urlparse-result-object` for more information on the result
247 >>> from urlparse import urljoin
252 :func:`urlparse`.
280 This is the current standard (STD66). Any changes to urlparse module
306 Results of :func:`urlparse` and :func:`urlsplit`
309 The result objects from the :func:`urlparse` and :func:`urlsplit` functions are
324 >>> import urlparse
327 >>> r1 = urlparse.urlsplit(url)
331 >>> r2 = urlparse.urlsplit(r1.geturl())
342 Concrete class for :func:`urlparse` results.