tldextract

★ 123 Open GitHub ↗

Extract root domain, subdomain name, and tld from a url, using the Public Suffix List.

// repository documentation