update-tld-names

Extract the top level domain (TLD) from a given URL (Python 3)

Install

All systems
curl cmd.cat/update-tld-names.sh
Debian Debian
apt-get install python3-tld
Ubuntu
apt-get install python3-tld
image/svg+xml Kali Linux
apt-get install python3-tld
Fedora
dnf install python3-tld
Windows (WSL2)
sudo apt-get update sudo apt-get install python3-tld

python3-tld

Extract the top level domain (TLD) from a given URL (Python 3)

This package contains a module which extracts the top level domain (TLD) from the given URL. The list of TLD names is taken from Mozilla. It can optionally raises exceptions on non-existing TLDs or silently fails (if fail_silently argument is set to True). This package installs the library for Python 3.

python2-tld

given