extract method
Process input
and extract necessary data.
- Note: the output is usually passed to the next
extractor
in the chain.
Implementation
@override
List extract(dynamic input) {
return HtmlUtils.selectMatchingElements(
HtmlUtils.formatInputElement(input),
selector,
maxCount,
).map((element) => HtmlUtils.applyCollectors(element, collectors)).where((element) => element != null).toList();
}