tldextract

Python tool for separating TLDs

Debian Debian
RUN apt-get update && \ apt-get install -y tldextract
Ubuntu
RUN apt-get update && \ apt-get install -y tldextract
Arch Arch Linux
RUN pacman -S --noconfirm tldextract
image/svg+xml Kali Linux
RUN apt-get update && \ apt-get install -y tldextract
Fedora
RUN dnf install -y tldextract
click the source code to copy install tldextract on any operating system with command-not-found.com