Automatically updated list of valid TLDs taken directly from IANA


Keywords
tld
License
MIT
Install
pip install tlds==2019040700

Documentation

Automatically updated list of valid TLDs for Python

The tlds module provides a a set of valid TLDs directly taken from IANA. The package is automatically updated daily.

Available on PyPI.

Build status

PyPI

PyPI - Downloads

Usage

>>> from tlds import tld_set >>> 'com' in tld_set True >>> 'foobar' in tld_set False >>> 'pizza' in tld_set True >>>