extract_url_components
Extract components from an URL.
Let’s say we have http://www.cwi.nl:80/%7Eguido/Python.html;a=2;b=3?c=4,2&d=e#anchor
as our URL.
Then these components will be the following:
scheme
: URL scheme specifier (http)domain
: Network location part (www.cwi.nl:80)path
: Hierarchical path (/%7Eguido/Python.html)params
: Parameters for last path element (a=2;b=3)query
: Query component (c=4,2&d=e)fragment
: Fragment identifier (anchor)
For more information about these components you can check urllib’s description here.
Was this page helpful?