How to limit the number of links I scrape from website with infinite scroll?

Hello!

I want to scrape data from this website https://www.trabalhabrasil.com.br/. I have already created a sitemap that clicks on each item, and scrape data from its page.
But the website has infinite scroll and I need it to click only on about 50 to 80 links. Is that possible?

Thank you!

You can find the answer here: Twitter auto loading

Hi, try this one. I set the scroller to stop at item 60, div:nth-of-type(60). You can adjust as needed. For this scrape I used this setting:
Page load delay (ms): 4200

{"_id":"trabalhabrasil_scroll_limit","startUrl":["https://www.trabalhabrasil.com.br/"],"selectors":[{"id":"scroll_few","type":"SelectorElementScroll","parentSelectors":["_root"],"selector":"div:nth-of-type(60)","multiple":false,"delay":"2500"},{"id":"job","type":"SelectorText","parentSelectors":["select_listing"],"selector":".job-vacancy-occupation ","multiple":false,"regex":"","delay":0},{"id":"location","type":"SelectorText","parentSelectors":["select_listing"],"selector":"div.job-vacancy-moredetails","multiple":false,"regex":"","delay":0},{"id":"select_listing","type":"SelectorElement","parentSelectors":["_root"],"selector":".job-wrapper","multiple":true,"delay":0}]}