-
Hi All! I have a list of links to be excluded (I can't use enqueueLinks filter for this use case). If I do "return", the handler gets triggered.. any idea?
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
You can do it with
transformRequestFunction: (request) => {
if (request.url.match(mySkipRegex)) {
return null;
}
return request;
}
|
Beta Was this translation helpful? Give feedback.
-
Updating that the skipNavigation option works, but got "DEBUG PlaywrightCrawler: Page opened." for the skipped URL. Wondering if the page is loaded (traffic downloaded)?
|
Beta Was this translation helpful? Give feedback.
-
@LeMoussel : |
Beta Was this translation helpful? Give feedback.
You can do it with
enqueueLinks
.See Skipping navigations for certain requests