Pagination w/o Next

Here is an interesting one. How do you sort out pagination on this one?

URL = https://www.paris-halal.com/ville/paris/

image
Bit of a wonky pattern. The [,,] expand as you paginate through the pages.

I thought of us [Class=page-numbers haspaglink current] to tie it to the current page and then + but that didn't pan out.

My final attempt was to use element click to cause a recursive loop (like you'd do with link-selector pagination). That seemed to work but ultimately just looped over and over returning back to the first page.
(plus no data was scraped.

@leemeng any thoughts?

{"_id":"forum-paginate_paris-halal","startUrl":["https://www.paris-halal.com/ville/paris/"],"selectors":[{"id":"paginate","type":"SelectorElementClick","parentSelectors":["_root","paginate"],"selector":"div.lp_detail_page_styles1","multiple":true,"delay":0,"clickElementSelector":"li:nth-of-type(n+2) span.haspaglink","clickType":"clickOnce","discardInitialElements":"discard-when-click-element-exists","clickElementUniquenessType":"uniqueCSSSelector"},{"id":"Element","type":"SelectorElement","parentSelectors":["_root","paginate"],"selector":"div.list-style-cotainer","multiple":true,"delay":0},{"id":"Name","type":"SelectorText","parentSelectors":["Element"],"selector":"h4 font font","multiple":false,"regex":"","delay":0},{"id":"type","type":"SelectorText","parentSelectors":["Element"],"selector":".lp-listing-cat font font","multiple":false,"regex":"","delay":0}]}

Hey @bretfeig, certainly an interesting case. The sitemap below works for me. I'm just using Element click with Click type: Once and Uniqueness: Unique HTML + Text. The click selector is a bit complex. Here I'm making sure it only clicks on numbered buttons, and avoids clicking on the current page button and the ellipsis [...] buttons

span[data-pageurl]:not([class*='current'])

Sitemap:
{"_id":"forum-paris-halal","startUrl":["https://www.paris-halal.com/ville/paris/"],"selectors":[{"id":"Wrappers","type":"SelectorElement","parentSelectors":["_root","Paginator"],"selector":"div[class*='lp-grid-box-contianer'][data-title]","multiple":true,"delay":0},{"id":"Name and Link","type":"SelectorLink","parentSelectors":["Wrappers"],"selector":"div.lp-bottom-left-full-outer h4 a","multiple":false,"delay":0},{"id":"Paginator","type":"SelectorElementClick","parentSelectors":["_root"],"selector":"div.search-filter-response","multiple":true,"delay":"5000","clickElementSelector":"ul.page-numbers > li:nth-of-type(n+2) > span[data-pageurl]:not([class*='current'])","clickType":"clickOnce","discardInitialElements":"discard","clickElementUniquenessType":"uniqueHTMLText"}]}

span[data-pageurl]:not([class*='current'])

@leemeng:
I want to learn that kind of solving scraping-problems. Can you give me a tip how to start? Are these things regex-commands?

Hi those are not regex, but rather a bit more advanced CSS selectors.. You would need tp know some HTML and CSS to make good use of them. There is a good reference at https://www.w3schools.com/cssref/css_selectors.asp

Okay, thanks. Do I need that stuff for solving my problem? --> Facebook: Scraping Names of Posts