Is there a way to get the number of enqueued links...
# crawlee-js
n
I have the following code for AdaptivePlaywrightCrawler and I want to log the number of enqueued links after calling enqueueLinks.
Copy code
router.addDefaultHandler(async ({ request, enqueueLinks, parseWithCheerio, querySelector, log, page }) => {
      
      await enqueueLinks({
        strategy: 'same-domain',
        globs: globs,
        transformRequestFunction: (request) => {

          return request;
        },
      });

    });
h
Someone will reply to you shortly. In the meantime, this might help:
r
hey, you can get that from the object that is returned by the function: https://crawlee.dev/api/types/interface/BatchAddRequestsResult