This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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({ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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({ |
OlderNewer