How the Public Suffix List and Caching work
masterPublic Suffix List
tldextract uses the Public Suffix List (PSL) to distinguish between public suffixes (e.g., .com, .co.uk) and private suffixes (e.g., blogspot.com, github.io).
Default Behavior
- Private Domains: By default, private suffixes are treated as regular domains. To treat them as suffixes, set
include_psl_private_domains=TrueinTLDExtract. - Caching: On first use,
tldextractfetches the latest PSL and caches it indefinitely in$HOME/.cache/python-tldextract.