from urllib.parse import urlparse url = "https://localhost/products/search/camisetas;tamanho=M/calças;tamanho=40" print(urlparse(url))
Standard input is empty
ParseResult(scheme='https', netloc='localhost', path='/products/search/camisetas;tamanho=M/calças', params='tamanho=40', query='', fragment='')