Recover endless pagination items by clicking on showMore button
Hey guys ! Im trying to scrape all the products from a listing with an endless pagination. In order to load the other items, I've got to click on a showMore button. I looked it up on the docs and tried several syntaxes but I couldn't get it to work..
I don't get why the products won't load even after the click and the waitForTimeout. Thank you for your help !
2 Replies
foreign-sapphire•3y ago
This might help you, it can also click: https://crawlee.dev/api/playwright-crawler/namespace/playwrightUtils#infiniteScroll
playwrightUtils | API | Crawlee
A namespace that contains various utilities for
Playwright - the headless Chrome Node API.
Example usage:
```javascript
import { launchPlaywright, playwrightUtils } from 'crawlee';
// Navigate to https://www.example.com in Playwright with a POST request
const browser = await launchPlaywright();
c...
foreign-sapphire•3y ago
+ do screenshots at the end of the scroll so you see what happens on the page