Skip to content

kejinlu/KKDomain

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

KKDomain

A objc library which gives access to the PSL (Public Suffix List).

What is PSL?

The Public Suffix List is intended to enumerate all domain suffixes controlled by registrars.
A "public suffix" is also known by the older term effective top-level domain (eTLD).

How to use KKDomain?

If you use cocoapods just

pod 'KKDomain', :git => 'https://github.com/kejinlu/KKDomain.git'

else copy category files to your project

#import "NSString+KKDomain.h"
......

NSString *host = @"www.taobao.com";
NSLog(@"publicSuffix: %@",[host publicSuffix]);
NSLog(@"registeredDomain: %@",[host registeredDomain]);

About

A objc library which gives access to the PSL (Public Suffix List).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published