Extracts the top level domain (TLD) from the URL given.
OTHER License
Published by barseghyanartur over 1 year ago
Published by barseghyanartur over 3 years ago
Registry
class from tld.registry
to tld.base
.black
.update_tld_names
.Published by barseghyanartur almost 4 years ago
Release dedicated to defenders of Armenia and Artsakh (Nagorno Karabakh)
and all the victims of Turkish and Azerbaijani aggression.
parsed_url
attributes (SplitResult
) when gettingas_object=True
).Published by barseghyanartur almost 4 years ago
Published by barseghyanartur almost 4 years ago
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
and is_tld
functions.
Published by barseghyanartur over 4 years ago
Published by barseghyanartur over 4 years ago
.. note::
In commemoration of `Armenian Genocide <https://en.wikipedia.org/wiki/Armenian_Genocide>`_.
Published by barseghyanartur over 4 years ago
Published by barseghyanartur over 4 years ago
Published by barseghyanartur over 4 years ago
Published by barseghyanartur over 4 years ago
Published by barseghyanartur almost 5 years ago
Published by barseghyanartur almost 5 years ago
.. note::
There have been no code changes since 0.11.2. The only change is that
support for Python 2.7 and 3.5 has been added.
Published by barseghyanartur almost 5 years ago
Published by barseghyanartur almost 5 years ago
Published by barseghyanartur almost 5 years ago
.. note::
Since introduction of parser classes, usage of
``NAMES_SOURCE_URL`` and ``NAMES_LOCAL_PATH`` of the ``tld.conf``
module is deprecated. Also, ``tld_names_local_path``
and ``tld_names_source_url`` arguments are deprecated as well.
If you want to customise things, implement your own parser (inherit from
``BaseTLDSourceParser``).
tld_names_source_url
and tld_names_local_path
introducedPublished by barseghyanartur almost 5 years ago
.. note::
This is the last release which supports Python 2.
reset_tld_names
functiontld_names_local_path
parameter.Published by barseghyanartur almost 5 years ago
Published by barseghyanartur almost 5 years ago
.. note::
This release is dedicated to my newborn daughter. Happy birthday, my dear
Ani.