You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

7 lines
163 B
Python

from urllib.parse import urljoin, urlparse
def remove_queries_from_url(url: str) -> str:
parsed_url = urlparse(url)
return urljoin(url, parsed_url.path)