Wrapper for extracting only wanted parts from urls.
pip:
pip install git+https://github.com/dealroom/data-urlextract@main
Poetry:
poetry add "git+https://github.com/dealroom/data-urlextract#main"
>>> from dealroom_urlextract import extract
>>> extract('http://www.something.com/home.html?abc')
something.com
Based on tldextract.