Advertisement
rfmonk

urlparse_urljoin.py

Feb 9th, 2014
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.21 KB | None | 0 0
  1. from urlparse import urljoin
  2.  
  3. print urljoin('http://www.example.com/path/file.html',
  4.               'anotherfile.html')
  5. print urljoin('http://www.example.com/path/file.html',
  6.               '../anotherfile.html')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement