john-kurkowski/tldextract

Error with domain com.ru

Closed this issue · 0 comments

temi4 commented

Example

http://swissgear.com.ru/
https://ts-alu.com.ru/
https://www.marriott.com.ru/

https://raw.githubusercontent.com/publicsuffix/list/master/public_suffix_list.dat - com.ru has

url_extractor = tldextract.extract("https://www.marriott.com.ru/")
print(url_extractor.subdomain) -> marriott

marriott.com.ru - is main domain