from urllib import parse url = "https://engine.scichina.com/publisher/scp/journal/NSR?slug=abstracts" parse.urlsplit(url) SplitResult(scheme='https', netloc='engine.scichina.com', path='/publisher/scp/journal/NSR', query='slug=abstracts', fragment='')