tldextract accurately separates the gTLD or ccTLD (generic or country code
top-level domain) 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.
Provides
Requires
License
BSD-3-Clause AND MPL-2.0
Changelog
* Sun Oct 04 2026 Mia Herkt <mia@0x0.st>
- Update to 5.4.0:
Features
* Add TLDEXTRACT_PUBLIC_SUFFIX_LIST_URLS environment variable
to set the default suffix list URLs
gh#john-kurkowski/tldextract#374
* Add the clearer TLDEXTRACT_DEFAULT_FETCH_TIMEOUT environment
variable, while retaining support for TLDEXTRACT_CACHE_TIMEOUT
gh#john-kurkowski/tldextract#375
Bugfixes
* Fix hostname extraction from already-parsed URLs with
credentials, ports, or IPv6 addresses
gh#john-kurkowski/tldextract#379
* Preserve private suffix metadata when a longer wildcard suffix
does not match
gh#john-kurkowski/tldextract#383
Docs
* Document added and deprecated names
gh#john-kurkowski/tldextract#378
* Sat Aug 22 2026 Mia Herkt <mia@0x0.st>
- Update to 5.3.2:
Bugfixes
* Fix reverse_domain_name stray dots when suffix or domain empty
gh#john-kurkowski/tldextract#368
Docs
* Fix README: extract_urllib is on the instance, not the module
gh#john-kurkowski/tldextract#362
* Fix docstring: default cache_dir description
gh#john-kurkowski/tldextract#367
* Document hostname representation limits
* Document implicit PSL wildcard behavior
* Mon Jul 13 2026 Lubos Kocman <lubos.kocman@suse.com>
- Add MPL-2.0 to license to account for the MPL-2.0 TLD set data
discovered during legal review
* Mon Dec 29 2025 Mia Herkt <mia@0x0.st>
- Update to 5.3.1:
Bugfixes
* Drop support for EOL Python 3.9
[#]gh/john-kurkowski/tldextract#359
* Support Python 3.14 + PyPy 3.11
[#]gh/john-kurkowski/tldextract#358
* Speed up IP address search space with isdecimal() instead of
isdigit()
[#]gh/john-kurkowski/tldextract#352
Docs
* Reorganize, dedupe, and shorten README
[#]gh/john-kurkowski/tldextract#349
* Wed Apr 23 2025 Mia Herkt <mia@0x0.st>
- Update to 5.3.0:
Features
* Add result field registry_suffix
To complement the existing public suffix field suffix
[#]gh/john-kurkowski/tldextract#344
* Add result property top_domain_under_public_suffix
[#]gh/john-kurkowski/tldextract#344
* Add result property top_domain_under_registry_suffix
[#]gh/john-kurkowski/tldextract#344
* Deprecate registered_domain property
Use top_domain_under_public_suffix instead, which has the same
behavior but a more accurate name
Bugfixes
* Fix missing reverse_domain_name property in CLI --json output
Misc
* Expand internal suffix_index return type to be richer than
bools, and include the registry suffix during trie traversal
[#]gh/john-kurkowski/tldextract#344
* Tue Apr 08 2025 Mia Herkt <mia@0x0.st>
- Update to 5.2.0:
Features
* Add `reverse_domain_name` result property
[#]gh/john-kurkowski/tldextract#342
Bugfixes
* Extend exported public interface with `ExtractResult` and
`update`
These were always meant to be public. Eases user import.
Docs
* Document result fields
* Note all return values
* Colocate usage in the usage section
* Link to private domain docs
* Thu Jan 23 2025 Steve Kowalik <steven.kowalik@suse.com>
- Drop unneeded BuildRequires on six.
- Specify dist-info directory in %files.
* Sat Nov 09 2024 Dirk Müller <dmueller@suse.com>
- update to 5.1.3:
* Reduce logging errors (`921a825`)
* Drop support for EOL Python 3.8
* Support Python 3.13
* Update bundled snapshot
* Thu Mar 28 2024 Mia Herkt <mia@0x0.st>
- Update to 5.1.2:
* Remove socket.inet_pton, to fix platform-dependent IP parsing
[#]gh/john-kurkowski/tldextract#318
* Use non-capturing groups for IPv4 address detection, for a
slight speed boost
[#]gh/john-kurkowski/tldextract#323
* Fri Dec 08 2023 Dirk Müller <dmueller@suse.com>
- update to 5.1.1:
* Fix path join on Windows (#314)
* Support Python 3.12
* Fri Nov 10 2023 ecsos <ecsos@opensuse.org>
- Macro %{?sle15_python_module_pythons} must at beginn of spec to
fix build error in Leap.
* Mon Nov 06 2023 Mia Herkt <mia@0x0.st>
- Update to 5.1.0:
Features:
* Allow passing in `requests.Session`
[#]gh/john-kurkowski/tldextract#311
* Add "-j, --json" option to support output in json format
[#]gh/john-kurkowski/tldextract#313
* Mon Oct 23 2023 Mia Herkt <mia@0x0.st>
- Update to 5.0.1:
Bugfixes:
* Indicate MD5 not used in a security context (FIPS compliance)
[#]gh/john-kurkowski/tldextract#309
Misc.:
* Increase typecheck aggression
- Changes in 5.0.0:
Breaking Changes:
* Migrate `ExtractResult` from `namedtuple` to `dataclass`
[#]gh/john-kurkowski/tldextract#306
Bugfixes:
* Drop support for EOL Python 3.7
- Changes in 4.0.0:
Breaking Bugfixes:
* Always include suffix if private suffix enabled and private
suffix exists
[#]gh/john-kurkowski/tldextract#300
- Changes in 3.5.0:
Features:
* Support IPv6 addresses
[#]gh/john-kurkowski/tldextract#298
Bugfixes:
* Accept only 4 decimal octet IPv4 addresses
[#]gh/john-kurkowski/tldextract#292
* Support IPv4 addresses with unicode dots
* Reject IPv4 addresses with trailing whitespaces + non-whitespaces
[#]gh/john-kurkowski/tldextract#293
* Sat Jul 01 2023 ecsos <ecsos@opensuse.org>
- Add %{?sle15_python_module_pythons}
* Sun May 21 2023 Mia Herkt <mia@0x0.st>
- Update to 3.4.4:
Bugfixes
* Honor private domains flag on self, not only when passed to
__call__
[#]gh/john-kurkowski/tldextract#289
- Changes in 3.4.3:
Bugfixes
* Speed up 10-15% over all inputs
* Refactor suffix_index() to use a trie
[#]gh/john-kurkowski/tldextract#285
Docs
* Adopt PEP257 doc style
- Changes in 3.4.2:
Bugfixes
* Speed up 10-40% on "average" inputs, and even more on
pathological inputs, like long subdomains
* Optimize suffix_index(): search from right to left
[#]gh/john-kurkowski/tldextract#283
* Optimize netloc extraction: switch from regex to if/else
[#]gh/john-kurkowski/tldextract#284
* Thu May 04 2023 Mia Herkt <mia@0x0.st>
- Update to 3.4.1
Bugfixes
* Fix Pyright not finding tldextract public interface
[#]gh/john-kurkowski/tldextract#279
* Fix various Pyright checks
* Use SPDX license identifier
[#]gh/john-kurkowski/tldextract#280
* Support Python 3.11
Docs
* Add FAQ about private domains
Files
/etc/alternatives/tldextract
/usr/bin/tldextract
/usr/bin/tldextract-3.13
/usr/lib/python3.13/site-packages/tldextract
/usr/lib/python3.13/site-packages/tldextract-5.4.0.dist-info
/usr/lib/python3.13/site-packages/tldextract-5.4.0.dist-info/INSTALLER
/usr/lib/python3.13/site-packages/tldextract-5.4.0.dist-info/METADATA
/usr/lib/python3.13/site-packages/tldextract-5.4.0.dist-info/RECORD
/usr/lib/python3.13/site-packages/tldextract-5.4.0.dist-info/REQUESTED
/usr/lib/python3.13/site-packages/tldextract-5.4.0.dist-info/WHEEL
/usr/lib/python3.13/site-packages/tldextract-5.4.0.dist-info/entry_points.txt
/usr/lib/python3.13/site-packages/tldextract-5.4.0.dist-info/licenses
/usr/lib/python3.13/site-packages/tldextract-5.4.0.dist-info/licenses/LICENSE
/usr/lib/python3.13/site-packages/tldextract-5.4.0.dist-info/top_level.txt
/usr/lib/python3.13/site-packages/tldextract/.tld_set_snapshot
/usr/lib/python3.13/site-packages/tldextract/__init__.py
/usr/lib/python3.13/site-packages/tldextract/__main__.py
/usr/lib/python3.13/site-packages/tldextract/__pycache__
/usr/lib/python3.13/site-pac