@Override
    public FetchedResult get(String url, Payload payload) throws BaseFetchException {
        URL realUrl;
        try {
            realUrl = new URL(url);
        } catch (MalformedURLException e) {
            throw new IllegalArgumentException("Invalid URL provided: " + url);
        }
        String host = realUrl.getHost();
        String domain = host.substring(host.lastIndexOf('.') + 1);
        if(domain.equals("onion")) {
            return torFetcher.get(url);
        } else{
            return httpFetcher.get(url);
        }
    }
Downloads RL using a TOR proxy, when it is a onion URL, or using 
regular HTTP fetcher otherwise.
ache/src/main/java/achecrawler/crawler/async/fetcher/TorProxyFetcher.java