def get_urlbase(url):
 parsed_uri = urlparse(url)
 return '{uri.scheme}://{uri.netloc}/'.format(uri=parsed_uri)

def get_urlbase ( url ) : parsed_uri = urlparse ( url ) return '{uri.scheme}://{uri.netloc}/' . format ( uri = parsed_uri )
return the base url .