barseghyanartur/tld

Incorrectly extracted TLD

HugooB opened this issue · 2 comments

I think I found this little bug:

import tld

url = "http://www-weekend-at-prod.platform.mediengruppe.at.pr-1539-vmr5j3y-mklkfvg2fby2e.eu-2.platformsh.site"
print(tld.get_tld(url, as_object=True).tld

results in 'eu-2.platformsh.site', this should be site

Hello @HugooB, as per this line of the suffix list, it seems the correct result is indeed eu-2.platformsh.site.

Ah, did not expect that, thanks for letting me know ;)