Most infinite-scroll code looks the same: scroll down, sleep a couple of seconds, scroll again, repeat a fixed number of times. It works on the page you tested it on and breaks on the next one, ...