tldextract (pypi): Accurately separates a URL's subdomain, domain, and public suffix, using the Public Suffix List (PSL). By default, this includes the public ICANN TLDs and their exceptions. You can optionally support the Public Suffix List's private domains as well.
Keywords: tld|domain|subdomain|url|parse|extract|urlparse|urlsplit|public|suffix|list|publicsuffix|publicsuffixlist|country-codes|python|tldextract