from urllib.parse import urlparse

url = "https://localhost/products/search/camisetas;tamanho=M/calças;tamanho=40"

print(urlparse(url))