Package crawlercommons.domains
Class PaidLevelDomain
- java.lang.Object
-
- crawlercommons.domains.PaidLevelDomain
-
public class PaidLevelDomain extends Object
Routines to extract the PLD (paid-level domain, as per the IRLbot paper) from a hostname or URL.
-
-
Constructor Summary
Constructors Constructor Description PaidLevelDomain()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
getPLD(String hostname)
Extract the PLD (paid-level domain) from the hostname.static String
getPLD(URL url)
Extract the PLD (paid-level domain) from the URL.
-