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.
No known vulnerabilities in the latest version
Based on latest version 5.3.1. If you're running an older version, check OSV for your specific version.
[](/packages/tldextract)
<a href="/packages/tldextract"><img src="/api/badges/tldextract?period=month" alt="PyPI Stats"></a>