Hi, I was trying to scrape the spare parts of this product. There are multiple pages of spare parts and you can browse them clicking the arrow buttons next to the image down below.
The issue is, at the final page, the next button is still functional and will get you to first page. So, using simple element click selector will make the pagination infinite, looping all the time. For reference, I put the sitemap that will show this looping issue.
How can i deal with this type of pagination?
Thanks in advance!
Url: Online help, spare parts and accessories | Bosch UK
Sitemap:
{"_id":"scraper_infinite_pages","startUrl":["Online help, spare parts and accessories | Bosch UK button.next","clickElementUniquenessType":"uniqueCSSSelector","clickType":"clickMore","delay":2000,"discardInitialElements":"do-not-discard","multiple":true,"selector":".item"},{"id":"part_reference","parentSelectors":["pagination"],"type":"SelectorText","selector":"span.id","multiple":false,"delay":0,"regex":""},{"id":"part_name","parentSelectors":["pagination"],"type":"SelectorText","selector":"span.name","multiple":false,"delay":0,"regex":""},{"id":"part_id","parentSelectors":["pagination"],"type":"SelectorText","selector":"span.prodnr","multiple":false,"delay":0,"regex":""},{"id":"part_price","parentSelectors":["pagination"],"type":"SelectorText","selector":"span.price","multiple":false,"delay":0,"regex":""}]}


