Problem.
Scrolling goes down and up (why??) back and forth several times, then stops.
There were few threads on this Infinite scrolling stops after 2nd scroll - #3 by therocsta
But solutions suggested there didn't provide good results.
The best result (200 items) was achieved with a help of :nth-of-type(-n+10). Check the sitemap below. But 200 items is far not all that available there.
Can anyone suggest how to get SelectorElementScroll working properly going only down for necessary amount of times?
Url: https://www.reddit.com/r/restaurateur/
Sitemap:
{"_id":"subreddit_analyzer","startUrl":["https://www.reddit.com/r/restaurateur/"],"selectors":[{"id":"avatar","parentSelectors":["post"],"type":"SelectorText","selector":"faceplate-tracker","multiple":false,"regex":""},{"id":"post-title","parentSelectors":["post"],"type":"SelectorText","selector":"[slot=\"title\"]","multiple":false,"regex":""},{"id":"post-description","parentSelectors":["post"],"type":"SelectorText","selector":"[slot=\"text-body\"]","multiple":false,"regex":""},{"id":"upvotes-container","parentSelectors":["post"],"type":"SelectorElement","selector":".block:shadow-root span.p-0","multiple":false},{"id":"upvotes","parentSelectors":["upvotes-container"],"type":"SelectorText","selector":"faceplate-number","multiple":false,"regex":""},{"id":"link","parentSelectors":["post"],"type":"SelectorElementAttribute","selector":"a","multiple":false,"extractAttribute":"href"},{"id":"post","parentSelectors":["_root"],"type":"SelectorElementScroll","selector":"article.w-full:nth-of-type(-n+10)","multiple":true,"delay":5000,"elementLimit":500}]}