0.12.3-2020-11-26
barseghyanartur
released this
27 Nov 22:04
·
106 commits
to master
since this release
-
Separate parsers for (a) public and private and (b) public only domains. This
fixes a bug. If you want an old behaviour:The following code would raise exception in past.
from tld import get_tld get_tld( 'http://silly.cc.ua', search_private=False )
Now it would return
ua
.get_tld( 'http://silly.cc.ua', search_private=False )
If you want old behavior, do as follows:
from tld.utils import MozillaTLDSourceParser get_tld( 'http://silly.cc.ua', search_private=False, parser_class=MozillaTLDSourceParser )
Same goes for
get_fld
,process_url
,parse_tld
andis_tld
functions.