Hello guys, i'm having trouble scraping a website, i have to open 1643 windows inside the website and it crash after a bit of time. I understood that it is because i open more windows than allowed so i need to close them after scraping the data. I saw other posts on this solution but i couldn't make it work, everytime i try to include the exit button in the element click selector i doesn't work, so i'm asking for your help !
Btw in what order does this scraper work ?
Url: https://websummit.com/featured-startups
Sitemap: (i only linked the part that is not working, so the one that is clicking on the more button is not here)
{"_id":"web3","startUrl":["https://websummit.com/featured-startups"],"selectors":[{"id":"elemente","type":"SelectorElementClick","parentSelectors":["_root"],"selector":"div.ReactModal__Content","multiple":true,"delay":"0","clickElementSelector":"div.algolia-hit-box","clickType":"clickOnce","discardInitialElements":true,"clickElementUniquenessType":"uniqueText"},{"id":"site","type":"SelectorLink","parentSelectors":["elemente"],"selector":"span.m-social.m-website a","multiple":false,"delay":0},{"id":"exit","type":"SelectorElementClick","parentSelectors":["elemente"],"selector":"parent","multiple":true,"delay":"10","clickElementSelector":"svg.times","clickType":"clickOnce","discardInitialElements":true,"clickElementUniquenessType":"uniqueText"}]}
Thank you !
EDIT : I have found a way to close them but only after they are ALL loaded (so it doesn't help in this problematic)