Skip to content

Commit

Permalink
Update to core.ts for maxPagesToCrawl
Browse files Browse the repository at this point in the history
  • Loading branch information
cpdata committed Dec 4, 2023
1 parent ac0ac25 commit a6b4b1f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ export async function crawl(config: Config) {
typeof config.match === "string" ? [config.match] : config.match,
});
maxConcurrency: config.maxConcurrency || 1 , // Set the max concurrency
maxRequestsPerCrawl: config.maxPagesToCrawl, // Set the max pages to crawl or set to 0 to scrape the full website.
preNavigationHooks: [
// Abort requests for certain resource types
async ({ page, log }) => {
Expand Down

0 comments on commit a6b4b1f

Please sign in to comment.