If I have understood it correct here is your case
- Open a page
- Find some links from the page and visit them one by one
- While visiting each link extract data.
If my understanding is correct. I think you can proceed with below logic.
- Open the page
- Get all the links and save them to an array.
- Now open each page separately using the webdriver and do your job.