Hi, I am trying to parse pages that the following pagination: Code: <li class="current"> <span class="show-for-sr" data-page="1">You're on page</span>1 </li> <li > <a href="?page=2" rel="next" aria-label="Page 2" data-page="2">2</a> </li><li class="ellipsis" aria-hidden="true"></li> <li > <a href="?page=53" rel="next" aria-label="Page 53" data-page="53">53</a> </li> <li > <a href="?page=54" rel="next" aria-label="Page 54" data-page="54">54</a> </li> <li class="pagination-next "> <a href="#" aria-label="Next page" data-next><span class="show-for-sr">page</span></a> </li> </ul> if I try with # it doesnt work, so I think solution is to get the link before rel="next" how would I do this so pagination is https://domain.com/category?page?=2 and the next page https://domain.com/category?page?=3 etc Thanks
Hello. Please specify what exactly the question is? If you need help with the implementation of the passage of pagination, then give a link to the page where you need to do it, I will see and tell you how better to do it.
Just use this regular expression in Check next page function: Code: <li class="current">[\s\S]+?<\/li>\s*<li[^>]*>\s*<a[^>]+href="([^"]+)[^>]+rel="next"