Collects visited links that satisfy predicate
predicate
const itemLinkFinder = new LinkFinder((link) => link.rel.includes('item'));await entity.accept(itemLinkFinder);if (!itemLinkFinder.isEmpty) { const firstItemLink = itemLinkFinder.links[0]; entity = await follow(firstItemLink).then(parse);}// reset the link finder and do it againitemLinkFinder.reset();await entity.accept(itemLinkFinder);
Private
Indicates whether any visited links have satisfied predicate
List of visited links that have satisfied predicate
Resets this visitor, forgetting all visited links
Generated using TypeDoc
Collects visited links that satisfy
predicate
Example