Skip to content

Instantly share code, notes, and snippets.

import { PlaywrightCrawler } from 'crawlee';
const maxRepoCount = 100;
const crawler = new PlaywrightCrawler({
requestHandler: async ({ page, infiniteScroll }) => {
// Click the Load more button and scroll until
// `maxRepoCount` repositories are found.
console.log('Clicking and scrolling.');
await infiniteScroll({
import { PlaywrightCrawler, Dataset } from 'crawlee';
const maxRepoCount = 100;
const crawler = new PlaywrightCrawler({
requestHandler: async ({ page, infiniteScroll }) => {
// Click the Load more button and scroll until
// `maxRepoCount` repositories are found.
console.log('Clicking and scrolling.');
await infiniteScroll({