Problem with pagination on rotary

Hello with this sitemap, the pagination works only for 2 pages. I can only retrieve 20 records instead of 32...

How can I change this ?

Thank you for your help.

zigune

Url: https://my.rotary.org/fr/club-search?meetingLocationRange=50&clubName=&distance=50&meetingLocation=Vevey%2C%20Suisse&meetingLocationLatitude=46.4628333&meetingLocationLongitude=6.8419192

Sitemap:
{"_id":"rotary","startUrl":["https://my.rotary.org/fr/club-search?meetingLocationRange=50&clubName=&distance=50&meetingLocation=Vevey%2C%20Suisse&meetingLocationLatitude=46.4628333&meetingLocationLongitude=6.8419192"],"selectors":[{"id":"page","paginationType":"auto","parentSelectors":["_root","page"],"selector":".text-gray-400 path","type":"SelectorPagination"},{"id":"club","linkType":"linkFromHref","multiple":true,"parentSelectors":["page"],"selector":".ml-6 a","type":"SelectorLink"},{"id":"Lieu","multiple":false,"parentSelectors":["club"],"regex":"","selector":"h1","type":"SelectorText"},{"id":"website","multiple":false,"parentSelectors":["club"],"regex":"","selector":"span a[target]","type":"SelectorText"},{"id":"email","multiple":false,"parentSelectors":["club"],"regex":"","selector":"div.my-4:nth-of-type(1) a","type":"SelectorText"}]}

Hi,

If you go to page 2 and click 'Element preview' on the pagination selector, you will see that both the previous and next buttons are matched. It is important to match only the next button. See the reference below:

{"_id":"rotary","startUrl":["https://my.rotary.org/fr/club-search?meetingLocationRange=50&clubName=&distance=50&meetingLocation=Vevey%2C%20Suisse&meetingLocationLatitude=46.4628333&meetingLocationLongitude=6.8419192"],"selectors":[{"id":"page","paginationType":"auto","parentSelectors":["_root","page"],"selector":"[data-testid=\"pagination-next-btn\"]","type":"SelectorPagination"},{"id":"club","linkType":"linkFromHref","multiple":true,"parentSelectors":["page"],"selector":".ml-6 a","type":"SelectorLink"},{"id":"Lieu","multiple":false,"parentSelectors":["club"],"regex":"","selector":"h1","type":"SelectorText"},{"id":"website","multiple":false,"parentSelectors":["club"],"regex":"","selector":"span a[target]","type":"SelectorText"},{"id":"email","multiple":false,"parentSelectors":["club"],"regex":"","selector":"div.my-4:nth-of-type(1) a","type":"SelectorText"}]}
1 Like

Thank you for your help. Even if I found the solution before your answer it's perfect.

Thank you very much.