How to scroll page

Hi, I am using PupperteerCrawler, how to scroll load more in handler
4 Replies
stormy-gold
stormy-gold3y ago
Stack Overflow
Puppeteer - scroll down until you can't anymore
I am in a situation where new content is created when I scroll down. The new content has a specific class name. How can I keep scrolling down until all the elements have loaded? In other words, I w...
itchy-amethyst
itchy-amethyst3y ago
You can use Crawlee util function (should be easier and cleaner): https://crawlee.dev/api/puppeteer-crawler/namespace/puppeteerUtils#infiniteScroll
other-emerald
other-emeraldOP3y ago
this is not working when scroll on element not all page
stormy-gold
stormy-gold3y ago
You can look at the link to the source code and customize it

Did you find this page helpful?