Package com.googlecode.flaxcrawler.parse

Examples of com.googlecode.flaxcrawler.parse.DefaultParserController


    private class TestCrawler extends DefaultCrawler {

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


    @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);

        assertNotNull(page);
View Full Code Here

    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();

        // Creating five crawlers (to work with 5 threads)
View Full Code Here

TOP

Related Classes of com.googlecode.flaxcrawler.parse.DefaultParserController

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.