Pagination is not working in this sitemap. Need your help!

Describe the problem.

  1. I couldn't make the pagination work in the following site map
  2. I also need your help on how to Regex the district column with regex":"(?<=| ).+","delay":0

Thank you in advance for your help!!!

Url: https://www.gnjumc.org/?s=&post_type=person&person_type=clergy

Sitemap:
{"_id":"gnj9","startUrl":["https://www.gnjumc.org/?s=&post_type=person&person_type=clergy"],"selectors":[{"id":"church-element","type":"SelectorElementClick","parentSelectors":["_root"],"selector":"article","multiple":true,"delay":"1500","clickElementSelector":".page-numbers li","clickType":"clickOnce","discardInitialElements":"do-not-discard","clickElementUniquenessType":"uniqueCSSSelector"},{"id":"pastor-name","type":"SelectorText","parentSelectors":["church-element"],"selector":"h1","multiple":false,"regex":"","delay":0},{"id":"district","type":"SelectorText","parentSelectors":["church-element"],"selector":"span","multiple":false,"regex":"(?<=| ).+","delay":0},{"id":"email","type":"SelectorText","parentSelectors":["church-element"],"selector":"span","multiple":false,"regex":"(?<=Email: ).+","delay":0}]}

You need to use Link selector to paginate through the pages.

Here is a sitemap with the correct pagination:

{"_id":"gnj9","startUrl":["https://www.gnjumc.org/?s=&post_type=person&person_type=clergy"],"selectors":[{"id":"church-element","type":"SelectorLink","parentSelectors":["_root","pagination"],"selector":".single-search-item a","multiple":true,"delay":"0"},{"id":"pastor-name","type":"SelectorText","parentSelectors":["church-element"],"selector":"h1","multiple":false,"regex":"","delay":0},{"id":"district","type":"SelectorText","parentSelectors":["church-element"],"selector":".meta-info","multiple":false,"regex":"","delay":0},{"id":"email","type":"SelectorText","parentSelectors":["church-element"],"selector":"a.email span.info","multiple":false,"regex":"","delay":0},{"id":"pagination","type":"SelectorLink","parentSelectors":["_root","pagination"],"selector":"a.next","multiple":true,"delay":0}]}

1 Like

Hi
I have also a question about pagination. Please, can anyone tell me how to start a new topic?

Mr Pmoon, my excuses to interrupt in your topic/question. I saw no other option.

Thank you, @webber!
It worked well.
I don't figure out when to use Element Click or Link for pagination.
I will study the sitemap. Thanks again!:tada:

in the right upper corner shown in the following image, click the + icon:
Untitled-2

If you are new to the forum, you should follow your welcome email so that your account is activated for creating posts. I hope this helps you.:relaxed:

Thank you verry much for your help!