Link following and pagination

There's a main page

Engines-links are followed like M42

Then link M42B18 - 110CI/1.8L I4
and we arrive to site

this is the way how I scrape product info. From main page following links to product page where is the data to scrape.

The problem is that SOME data pages has pagination and some doesn't. How I should build this scraping that page 1 to page x are scraped if there are pagination?