Julia Interface for working with the Public Suffix List at http://publicsuffix.org/.
Parses the public suffix data dump and represents the data as a tree to be used in other APIs. A version of the file is bundled with the package, but the latest data is available online here.
Constructors:
psl = PublicSuffixList() # use the bundled public suffix list data
psl = PublicSuffixList(list_file::String) # use the data provided in list_file
Represents an internet domain name as the following attributes:
full: The full domain name as providedsub_domain: The sub_domain part of the domain namepublic_suffix: The valid public suffix for the domain nametop_domain: The top level domain for the domain nametyp: Type of the input::IPv6,:IPv4,:Domain. Attributessub_domain,public_suffixandtop_domainare valid only if type is:Domain.
Constructor: Domain(domain::String, list::PublicSuffixList=_def_list)
function tld_exists(tld::String; list::PublicSuffixList=_def_list)
Check whether the specified top level domain is valid.
function public_suffix(domain::String; list::PublicSuffixList=_def_list)
Returns the public siffix string for the given domain.
