Automatically updated list of valid TLDs taken directly from IANA


Keywords
tld
License
MIT
Install
pip install tlds==2019041901

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.

https://travis-ci.org/kichik/tlds.svg?branch=master

Usage

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