Ross ROSS = Recommend OSS · open-source software intelligence for agents

john-kurkowski/tldextract

Accurately separates a URL’s subdomain, domain, and public suffix, using the Public Suffix List (PSL). observed · 2026-08-28

github.com/john-kurkowski/tldextract · Python · BSD-3-Clause (permissive) observed · 2026-08-28

Health v2 · maintenance only

86/100

  • Activity 96
  • Release rhythm 64
  • Longevity 100
How is this computed?

round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.

  • gap_med: 187.5
  • age_days: 5667
  • days_rel: 25
  • days_push: 25
  • n_releases_24m: 5

Full methodology

Adoption not part of the score

2014 stars · 220 forks observed · 2026-08-28

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded

A Python library that accurately splits URLs into subdomain, domain, and public suffix components using the Public Suffix List. It also ships a small CLI for extraction and suffix list updates.

Use cases

  • parse domain and subdomain from a url in python
  • get registrable domain from url like bbc.co.uk
  • extract tld from hostname correctly
  • validate whether a string is a valid domain
  • group urls by root domain for analytics
  • avoid naive dot-splitting when parsing hostnames

When to choose

  • you need PSL-accurate domain parsing with edge cases like co.uk handled
  • you want optional support for private suffixes like blogspot.com
  • you need a maintained, widely used Python solution with CLI support

When to avoid

  • you only need scheme/host/path splitting, which urllib.parse already does
  • you need full URL normalization or crawling, not just hostname decomposition
  • you work outside Python and need a native implementation

Facets

library · maturity stable

parser web-scraping developer-tools web-development developer-tools apis python cli cross-platform public-suffix-list url-parsing domain-parsing tld subdomain

2 sources

Member repositories

RepositoryRoleHealth v2
john-kurkowski/tldextractmain86

For agents

markdown · JSON · MCP: product_card(name="john-kurkowski/tldextract")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem