URL join : URL « Network « Python






URL join

URL join
 

import urlparse

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

           
         
  








Related examples in the same category

1.Split up a URL of the form http://www.something.com
2.URL SplitURL Split
3.URL unsplitURL unsplit
4.URL unsplit and splitURL unsplit and split
5.Open a URL and read a web page
6.URL open and read