Function
urlparse.urljoin

Signature

urljoin(base, url, allow_fragments=1)

Documentation String

Join a base URL and a possibly relative URL to form an absolute interpretation of the latter.