Hi,
I am trying to parse pages that the following pagination:
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
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