Package com.crawljax.plugins.crawloverview.example

Source Code of com.crawljax.plugins.crawloverview.example.CrawlOverviewExample

package com.crawljax.plugins.crawloverview.example;

import com.crawljax.core.CrawljaxController;
import com.crawljax.core.configuration.CrawlSpecification;
import com.crawljax.core.configuration.CrawljaxConfiguration;
import com.crawljax.plugins.crawloverview.CrawlOverview;

public class CrawlOverviewExample {

  private static final String URL = "http://crawljax.com/";

  /**
   * @param args
   */
  public static void main(String[] args) {
    CrawljaxConfiguration config = new CrawljaxConfiguration();
    CrawlSpecification crawler = new CrawlSpecification(URL);
    crawler.setMaximumStates(5);
    crawler.clickDefaultElements();
    config.setCrawlSpecification(crawler);
    config.addPlugin(new CrawlOverview());
    try {
      CrawljaxController crawljax = new CrawljaxController(config);
      crawljax.run();
    } catch (Exception e) {
      e.printStackTrace();
    }
  }

}
TOP

Related Classes of com.crawljax.plugins.crawloverview.example.CrawlOverviewExample

TOP
Copyright © 2018 www.massapi.com. 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.