await enqueueLinks({ selector: '.pagination li:last-child > a', label: 'LIST', })
enqueueLinks
is a function that searches for the links on the page.crawler.addRequests
https://crawlee.dev/api/playwright-crawler/class/PlaywrightCrawler#addRequestsimport { PlaywrightCrawler } from 'crawlee' (async () => { const crawler = new PlaywrightCrawler({ headless: false, async requestHandler({ page, enqueueLinks }) { const eltHandle = await page.$('.pagination > li:last-child > a'); const liLink = await page.evaluate(li => [li.getAttribute('href')], eltHandle); await crawler.addRequests(liLink); }, }); await crawler.run([ 'https://www.haskovo.net/news', ]); })();
All
https://crawlee.dev/docs/upgrading/upgrading-to-v3#enqueuing-linksasync requestHandler({ request, response, log, enqueueLinks }) { log.info(`${request.loadedUrl} Status code: ${response.status()} ${request.label ? 'Label: ' + request.label : ''}`); await enqueueLinks({ selector: '.pagination li:last-child > a', label: 'LIST', strategy: EnqueueStrategy.All, }) },