Package com.googlecode.flaxcrawler.download

Examples of com.googlecode.flaxcrawler.download.DefaultDownloaderController


    }

    private class TestCrawler extends DefaultCrawler {

        public TestCrawler() {
            setDownloaderController(new DefaultDownloaderController());
            setParserController(new DefaultParserController());
        }
View Full Code Here


public class TestDefaultCrawler {

    @Test
    public void testDefaultCrawler() throws Exception {
        DefaultCrawler crawler = new DefaultCrawler();
        crawler.setDownloaderController(new DefaultDownloaderController());
        crawler.setParserController(new DefaultParserController());

        CrawlerTask crawlerTask = new CrawlerTask("http://www.wikipedia.org/", 0);
        Page page = crawler.crawl(crawlerTask);
View Full Code Here

        main(null);
    }

    public static void main(String[] args) throws MalformedURLException, CrawlerException {
        // Setting up downloader controller
        DefaultDownloaderController downloaderController = new DefaultDownloaderController();
        // Setting up parser controller
        DefaultParserController parserController = new DefaultParserController();

        // Creating crawler configuration object
        CrawlerConfiguration configuration = new CrawlerConfiguration();
View Full Code Here

TOP

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

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.