How do I scrape a page with Load more or infinite scroll?
Use a different setup depending on how the website loads additional records.
Load more button
If the page uses a Load more button:
- Create a Pagination selector.
- Select the Load more button.
- Keep the pagination type set to Auto unless the default behavior does not work correctly.
- Confirm that each click adds new records.
- Confirm that scraping stops when the button disappears or no new records are added.
Infinite scroll
If new records appear when you scroll down the page:
- Create an Element selector for the repeated records.
- Enable scrolling on the Element selector.
- Set an element limit if you only need a specific number of records.
- Preview the result and run a small test to confirm that later records load.
If the page uses both pagination and scrolling
Place the scrolling Element selector under the Pagination selector so scrolling runs again on every pagination page.
_root
└── pagination
└── items (scrolling enabled)
├── name
└── price
See the Pagination, load more and infinite scrolling documentation for the full setup options.