public static String getHost(String url) {
        String host = url;
        int i = StringUtils.ordinalIndexOf(url, "/", 3);
        if (i > 0) {
            host = StringUtils.substring(url, 0, i);
        }
        return host;
    }
@param url url
@return new url
@deprecated
webmagic-core/src/main/java/us/codecraft/webmagic/utils/UrlUtils.java