Skip to main content
Version: Next

PublicSuffixList

Registrable domain lookup based on the ICANN section of the Public Suffix List.

The rules are downloaded on first use, falling back to the bundled snapshot if the download fails. After that, they don't change.

Index

Methods

get_registrable_domain

  • get_registrable_domain(host): str | None
  • Return the registrable domain of host, or None for IP addresses and public suffixes.


    Parameters

    • host: str

    Returns str | None

Page Options