Package com.crawljax.core

Examples of com.crawljax.core.CrawljaxController


   */
  public CrawlSession crawl() throws Exception {
    if (!hasSetup.get()) {
      setup();
    }
    CrawljaxController crawljax = new CrawljaxController(config);
    crawljax.run();
    webServer.stop();
    crawljax.getBrowserPool().close();
    return crawljax.getSession();
  }
View Full Code Here


    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();
    }
  }
View Full Code Here

    CrawljaxConfiguration config = new CrawljaxConfiguration();

    config.setCrawlSpecification(crawler);

    try {
      CrawljaxController crawljax = new CrawljaxController(config);
      crawljax.run();
    } catch (ConfigurationException e) {
      e.printStackTrace();
    } catch (CrawljaxException e) {
      e.printStackTrace();
    }
View Full Code Here

    SaveCrawlSession saveCrawlSessionPlugin = new SaveCrawlSession(Utils.SESSION_XML);
    saveCrawlSessionPlugin.setOutputFolder(Utils.OUTPUTFOLDER);
    config.addPlugin(saveCrawlSessionPlugin);

    try {
      CrawljaxController controller = new CrawljaxController(config);
      controller.run();
    } catch (ConfigurationException e) {
      e.printStackTrace();
      System.exit(1);
    } catch (CrawljaxException e) {
      e.printStackTrace();
View Full Code Here

      // add your plugin
      config.addPlugin(new SamplePlugin());

      // initilize and run Crawljax
      CrawljaxController crawljax = new CrawljaxController(config);
      crawljax.run();

    } catch (Exception e) {
      e.printStackTrace();
    }
  }
View Full Code Here

    SaveCrawlSession saveCrawlSessionPlugin = new SaveCrawlSession(Utils.SESSION_XML);
    saveCrawlSessionPlugin.setOutputFolder(Utils.OUTPUTFOLDER);
    config.addPlugin(saveCrawlSessionPlugin);

    try {
      CrawljaxController controller = new CrawljaxController(config);
      controller.run();
    } catch (ConfigurationException e) {
      e.printStackTrace();
      System.exit(1);
    } catch (CrawljaxException e) {
      e.printStackTrace();
View Full Code Here

   * @param args
   *            none.
   */
  public static void main(String[] args) {
    try {
      CrawljaxController crawljax = new CrawljaxController(getConfig());
      crawljax.run();
    } catch (CrawljaxException e) {
      e.printStackTrace();
      System.exit(1);
    } catch (ConfigurationException e) {
      e.printStackTrace();
View Full Code Here

      // add your plugin
      config.addPlugin(new SamplePlugin());

      // initilize and run Crawljax
      CrawljaxController crawljax = new CrawljaxController(config);
      crawljax.run();

    } catch (Exception e) {
      e.printStackTrace();
    }
  }
View Full Code Here

    CrawljaxConfiguration config = new CrawljaxConfiguration();

    config.setCrawlSpecification(crawler);

    try {
      CrawljaxController crawljax = new CrawljaxController(config);
      crawljax.run();
    } catch (ConfigurationException e) {
      e.printStackTrace();
    } catch (CrawljaxException e) {
      e.printStackTrace();
    }
View Full Code Here

   * @param args
   *            the command line args
   */
  public static void main(String[] args) {
    try {
      CrawljaxController crawljax = new CrawljaxController(getCrawljaxConfiguration());
      crawljax.run();
    } catch (CrawljaxException e) {
      e.printStackTrace();
      System.exit(1);
    } catch (ConfigurationException e) {
      e.printStackTrace();
View Full Code Here

TOP

Related Classes of com.crawljax.core.CrawljaxController

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.