Well this is already pretty easily done. I have created a LinkedIn group scraper (so to say) that scrapes members from focus groups and exports them to a table (see this post here)
The things left to do there is use that table, loop through each line (maybe also with a randomized delay) and connect to the people you have previously filtered out as “interesting”.
If you want, I can also share what I created using the SE Nodes.