Skip to content
Advertisement

Pagination when there is no “next page” button and url doesn’t change

I’m trying to scrape https://www.ventureloop.com/ventureloop/job_search.php?g=0&jcat=46&dc=all&ldata=%&jt=1&jc=1&jd=1&d=5&btn=1 with Puppeteer and Node.js

The scraper works but only gets data from the first page as I don’t know how to paginate. The issue is that the URL doesn’t change depending on the page number, and there is no “next page” button.

How can I implement pagination with such constraints?

Below is my entire code:

JavaScript

Advertisement

Answer

Try something like this:

JavaScript
User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement