Mega Code Archive

 
Categories / Python / Network
 

URL join

import urlparse print urlparse.urljoin('http://somehost.com/', '../other/path')