Combine relative path with absolute path in Python---
date: Aug 12, 2017
This post is more than 5 years old. If this is a technical post, the post will most likely not working, but feel free to try it and see if it works.
Recently I need to combine a absolute link with a relative link, so I tried to hard code it but failed. After checking online, there is actually a lib in Python called
urlparse that have a function to combine this kind of url. the use is also simple:
from urlparse import urljoin