PyDocs

Nav

Internet Protocols and Support

urljoin

urllib.parse

function (source)
  • urljoin(base, url, allow_fragments=True)
Join a base URL and a possibly relative URL to form an absolute
interpretation of the latter.
Changed in 3.5
  • 3.5: Behavior updated to match the semantics defined in RFC 3986.
1 Example
>>> from urllib.parse import urljoin
>>> urljoin('http://www.cwi.nl/%7Eguido/Python.html', 'FAQ.html')
'http://www.cwi.nl/%7Eguido/FAQ.html'
from the Python docs
See Also
No see-alsos for urllib.parse/urljoin
0 Notes
No notes for urljoin