john-kurkowski / tldextract

Accurately separates a URL’s subdomain, domain, and public suffix, using the Public Suffix List (PSL).
BSD 3-Clause "New" or "Revised" License
1.83k stars 210 forks source link

.co.nl TLD not parsed properly #291

Closed dnissimi closed 1 year ago

dnissimi commented 1 year ago

>>> tldextract.extract('www.example.co.nl') ExtractResult(subdomain='www.example', domain='co', suffix='nl')

CO.NL. is the country code domain extension (ccTLD) for the Netherlands.

john-kurkowski commented 1 year ago

See this FAQ entry and this explanation of public vs. private domains.

dnissimi commented 1 year ago

Thank you!