I have an absolute URL, and the URL that a link on that page points to. Is there a b开发者_如何学Gouiltin function to apply a relative URL to an absolute URL?
Ie. "http://example.com/some/url", "/some/url/I/want/to/go/to" => "http://example.com/some/url/I/want/to/go/to"
urlparse.urljoin()
does just this.
精彩评论