The website actually put limit on the paginaiton you can visit. I can't even go beyond 20th page. It is also gives you a maximum page you can visit, 5,8,10,20 and they control it using cookies.
The only way I can see to scrape data here is to generate the url of the page.
and then you can generate the id= from 1-5000 or more and use it as an input url. In this method, you can also use web crawler and use multiple threads to make your scrape much faster.