convert url to string, and use urlparse to only get the path