john-kurkowski/tldextract

cn.com is in the PSL list however is not being treated as a suffix

Closed this issue · 1 comments

cn.com is in the PSL list however is not being treated as a suffix

>>> tldextract.extract("test.cn.com")
ExtractResult(subdomain='test', domain='cn', suffix='com')

figured out the private_domains flag

tldextractor = tldextract.TLDExtract(include_psl_private_domains=True)
tld_data = tldextractor("test.cn.com")