urlparse – Split URL into component pieces. - Python Module ...
pymotw.com › 2 › urlparseJul 11, 2020 · $ python urlparse_urlparse.py ParseResult(scheme='http', netloc='netloc', path='/path', params='parameters', query='query=argument', fragment='fragment') Although the return value acts like a tuple, it is really based on a namedtuple , a subclass of tuple that supports accessing the parts of the URL via named attributes instead of indexes.