How scrape data dynamically

How to check each and every link with particular string in webpage dynamically and scrap data from only required link

Can you provide any example?

Hi sathish,
Step 1: open browser
Step 2: type into activity(ex. laptops, i am searching for)
Step 3: click on search(display 20 laptops on 1 page)
Step 4: dynamically scrap data from required link(clicking on required link scraping details like specification of that product, stock, color)

Note: when browser display data in between we will be getting some sponsored adds or irrelevant data, so i want to scrap only required data from required link. can i search with any keyword “sponsored” on each link. if keyword exits dont scrap data for that link else scrap it.