Package com.googlecode.flaxcrawler.download

Examples of com.googlecode.flaxcrawler.download.Downloader


        beforeCrawl(crawlerTask);

        URL url = new URL(crawlerTask.getUrl());
        log.debug("Getting downloader for " + url + "...");
        Downloader downloader = downloaderController.getDownloader(url);
        log.debug("Downloading from " + url + "...");

        Page page = null;

        try {
            page = downloader.download(url);

            if (page != null) {
                crawlerTask.setTimeDownloaded(new Date());

                if (page.getResponseCode() == HttpURLConnection.HTTP_OK) {
View Full Code Here

TOP

Related Classes of com.googlecode.flaxcrawler.download.Downloader

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.