InputSpecification inputSpec = new InputSpecification();
inputSpec.field("q").setValue("Crawljax");
crawler.setInputSpecification(inputSpec);
// Constrain the crawl to Google (no other web sites)
crawler.addCrawlCondition("Only crawl Google", new UrlCondition("google"));
// limit the crawling scope
crawler.setMaximumStates(6);
crawler.setDepth(2);