Help paginating

Hello,

please excuse my noobness, but I just can't get to the problem here.
How to correctly paginate on this site?

Url: https://www.moto.it/moto-usate/ricerca?offer=S&brand=yamaha&brandacc=&model=yamaha%2Ftracer-900&version=cK0YdH&km_s=5000&km_t=15000&year_s=2018&year_t=2019

Sitemap:
{"_id":"tracer_motoit","startUrl":["https://www.moto.it/moto-usate/ricerca?offer=S&brand=yamaha&brandacc=&model=yamaha%2Ftracer-900&version=cK0YdH&km_s=5000&km_t=15000&year_s=2018&year_t=2019"],"selectors":[{"id":"pagenext","type":"SelectorLink","parentSelectors":["_root","pagenext"],"selector":".pager li:nth-of-type(n+4) a","multiple":true,"delay":0},{"id":"product","type":"SelectorLink","parentSelectors":["_root","pagenext"],"selector":".app-md-def .app-titles a","multiple":true,"delay":0}]}

Thanks in advance

This site uses server-side redirects so link pagination will not work because the server will reset your search results. You can still use the "page range"-type of pagination by looking at the URLs for page 2, page, 3 etc. From there you can see that only the page number changes, so you can use a range like
/moto-usate/ricerca/[1-3]?offer

Example sitemap:
{"_id":"forum-motoit-page","startUrl":["https://www.moto.it/moto-usate/ricerca/[1-3]?offer=S&brand=yamaha&brandacc=&model=yamaha%2Ftracer-900&modelname=&version=cK0YdH&cat=&categoryacc=&condition_expl=&region=&province=&zipcode=&price_f=&price_t=&place=&place_rad=&longitude=&latitude=&disp_f=&disp_t=&pow_f=&pow_t=&weig_s=&weig_t=&electric=&emis_s=&strokes_s=&gear_s=&seat_s=&seat_t=&km_s=5000&km_t=15000&year_s=2018&year_t=2019&circuit=&crashed=&special=&photo=&tradein=&person=&newtype=&abs=&unpw=&sort=&sortdir=&kw=&adref=&docs=&work=&rest=&pres=&asi="],"selectors":[{"id":"Result wrappers","type":"SelectorElement","parentSelectors":["_root"],"selector":"li div.app-ad-list-item","multiple":true,"delay":0},{"id":"Brand","type":"SelectorText","parentSelectors":["Result wrappers"],"selector":"span.app-leaf","multiple":false,"regex":""},{"id":"Model","type":"SelectorText","parentSelectors":["Result wrappers"],"selector":"span.app-title","multiple":false,"regex":""},{"id":"Price","type":"SelectorText","parentSelectors":["Result wrappers"],"selector":"div.app-price","multiple":false,"regex":""},{"id":"Product page","type":"SelectorLink","parentSelectors":["Result wrappers"],"selector":".app-titles a","multiple":false}]}

1 Like

Thanks Lee,

I had tried that but I was following product links and that was wrong.