tldextract accurately separates the gTLD or ccTLD (generic or
country code top-level domain) from the registered domain and
subdomains of a URL.

Homepage:
https://github.com/john-kurkowski/tldextract
