Describe the problem: I'm trying to scrape a page with infinite data. I'm using the element scroll down selector, but since it would loop forever if I didn't stop it, I'm trying to just get the first 30 elements. I used the :nth-of-type(-n+30) selector for the element scroll down, but it still seems to scroll infinitely.
Note: This specific example requires a Facebook account, but if you can figure out a general solution to this problem, then that would be helpful to future readers of this question.
Sitemap:
{"_id":"fbevents","startUrl":["https://www.facebook.com/events/discovery/?acontext={"ref"%3A"2"%2C"ref_dashboard_filter"%3A"upcoming"%2C"action_history"%3A"[{\"surface\"%3A\"dashboard\"%2C\"mechanism\"%3A\"main_list\"%2C\"extra_data\"%3A{\"dashboard_filter\"%3A\"upcoming\"}}]"}"],"selectors":[{"id":"title","type":"SelectorText","parentSelectors":["scr"],"selector":"a._7ty","multiple":false,"regex":"","delay":0},{"id":"scr","type":"SelectorElementScroll","parentSelectors":["_root"],"selector":"a._7ty:nth-of-type(-n+30) ","multiple":true,"delay":"1000"}]}