public class CandidateElementExtractor extends Object
| Constructor and Description |
|---|
CandidateElementExtractor(ExtractorManager checker,
EmbeddedBrowser browser,
FormHandler formHandler,
CrawljaxConfiguration config)
Create a new CandidateElementExtractor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkCrawlCondition() |
com.google.common.collect.ImmutableList<CandidateElement> |
extract(StateVertex currentState)
This method extracts candidate elements from the current DOM tree in the browser, based on
the crawl tags defined by the user.
|
@Inject public CandidateElementExtractor(ExtractorManager checker, EmbeddedBrowser browser, FormHandler formHandler, CrawljaxConfiguration config)
checker - the ExtractorManager to use for marking handled elements and retrieve the
EventableConditionCheckerbrowser - the current browser instance used in the CrawlerformHandler - the form handler.config - the checker used to determine if a certain frame must be ignored.public com.google.common.collect.ImmutableList<CandidateElement> extract(StateVertex currentState) throws CrawljaxException
currentState - the state in which this extract method is requested.CrawljaxException - if the method fails.public boolean checkCrawlCondition()
Copyright © 2007-2013. All Rights Reserved.