pip install url_extractor==0.0.2

extract the domain from a url

Source