pip install tldextract==3.1.2

Accurately separate the TLD from the registered domain and subdomains of a URL, using the Public Suffix List. By default, this includes the public ICANN TLDs and their exceptions. You can optionally support the Public Suffix List's private domains as well.

Source
Among top 1000 packages on PyPI.
Over 11.1M downloads in the last 90 days.

Commonly used with tldextract

Based on how often these packages appear together in public requirements.txt files on GitHub.

feedfinder2

Find the feed URLs for a website.

newspaper

Simplified python article discovery & extraction.

jieba

Chinese Words Segmentation Utilities

newspaper3k

Simplified python article discovery & extraction.

jieba3k

Chinese Words Segementation Utilities

requests-file

File transport adapter for Requests

python-docx

Create and update Microsoft Word .docx files.

readability-lxml

fast html to text parser (article readability tool) with python 3 support

rarfile

RAR archive reader for Python

cssutils

A CSS Cascading Style Sheets library for Python

reppy

Replacement robots.txt Parser

fake-useragent

Up to date simple useragent faker with real world database

everypolitician

Navigate countries and legislatures from EveryPolitician

everypolitician-popolo

Parse and model Popolo data from EveryPolitician

kipp

Python Utils

python-Levenshtein

Python extension for computing string edit distances and similarities.

cybox

A Python library for parsing and generating CybOX content.

url-normalize

URL normalization for Python

python-magic

File type identification using libmagic

Version usage of tldextract

Proportion of downloaded versions in the last 3 months (only versions over 1%).

3.1.2

46.48%

3.1.0

21.71%

2.2.2

9.00%

2.2.3

6.26%

2.1.0

4.21%

3.1.1

3.40%

3.0.2

3.15%

1.7.5

2.49%

2.2.0

1.75%