Hi everyone!
I am trying to scrape prices from a website which has a button "descubre más" (discover more) at the bottom of the page to keep loading units. I want it to scroll down and click that button until all units are loaded before fetching prices, but I can only manage to click it once. I have tried several things and can't make it work, can you please help? This is my current scraper (all other items work fine for what I need)
{"_id":"kukun","startUrl":["https://staykukun.com/es/search"],"selectors":[{"id":"open_date","parentSelectors":["_root"],"type":"SelectorElementClick","clickElementSelector":".v-input--is-label-active div.v-responsive__content","clickElementUniquenessType":"uniqueText","clickType":"clickOnce","delay":2000,"discardInitialElements":"do-not-discard","multiple":false,"selector":".v-input--is-label-active div.v-responsive__content"},{"id":"start_date","parentSelectors":["_root"],"type":"SelectorElementClick","clickElementSelector":"tr:nth-of-type(4) td:nth-of-type(7) div","clickElementUniquenessType":"uniqueText","clickType":"clickOnce","delay":2000,"discardInitialElements":"do-not-discard","multiple":false,"selector":"tr:nth-of-type(4) td:nth-of-type(7) div"},{"id":"shift_month","parentSelectors":["_root"],"type":"SelectorElementClick","clickElementSelector":"i.mdi-chevron-right","clickElementUniquenessType":"uniqueText","clickType":"clickOnce","delay":2000,"discardInitialElements":"do-not-discard","multiple":true,"selector":"i.mdi-chevron-right"},{"id":"end_date","parentSelectors":["_root"],"type":"SelectorElementClick","clickElementSelector":"tr:nth-of-type(5) td:nth-of-type(1) div","clickElementUniquenessType":"uniqueText","clickType":"clickOnce","delay":2000,"discardInitialElements":"do-not-discard","multiple":true,"selector":"tr:nth-of-type(5) td:nth-of-type(1) div"},{"id":"search","parentSelectors":["_root"],"type":"SelectorElementClick","clickElementSelector":".buttonBig span","clickElementUniquenessType":"uniqueText","clickType":"clickOnce","delay":2000,"discardInitialElements":"do-not-discard","multiple":true,"selector":".buttonBig span"},{"id":"scroll","parentSelectors":["open all"],"type":"SelectorElementScroll","selector":"parent","multiple":true,"delay":2000,"elementLimit":500},{"id":"open all","parentSelectors":["_root","scroll"],"type":"SelectorElementClick","clickElementSelector":".col-12 p","clickElementUniquenessType":"uniqueText","clickType":"clickMore","delay":2000,"discardInitialElements":"do-not-discard","multiple":true,"selector":".col-12 p"},{"id":"wrapper","parentSelectors":["_root"],"type":"SelectorElementScroll","selector":"div.px-5","multiple":true,"delay":2000,"elementLimit":500},{"id":"price","parentSelectors":["wrapper"],"type":"SelectorText","selector":"div.listingPrice","multiple":false,"regex":""},{"id":"type","parentSelectors":["wrapper"],"type":"SelectorText","selector":"div:nth-of-type(2) div.iconText","multiple":false,"regex":""}]}
Thanks a lot in advance!