Skip to main content
Version: 3.0

Puppeteer recursive crawl

Run the following example to perform a recursive crawl of a website using PuppeteerCrawler.


To run this example on the Apify Platform, select the apify/actor-node-puppeteer-chrome image for your Dockerfile.

import { PuppeteerCrawler } from 'crawlee';

const crawler = new PuppeteerCrawler({
async requestHandler({ request, page, enqueueLinks, log }) {
const title = await page.title();`Title of ${request.url}: ${title}`);

await enqueueLinks({
globs: ['http?(s)://**'],
maxRequestsPerCrawl: 10,

await crawler.addRequests(['']);