Question: Write script in Eclipse ( Selenium ) 1 ) Accepts a Wikipedia link - return / throw an error if the link is not a

Write script in Eclipse (Selenium)
1) Accepts a Wikipedia link - return/throw an error if the link is not a valid wiki link
2) Accepts a valid integer between 1 to 3- call it n
3) Scrape the link provided in Step 1, for the first 10 unique (not previously added already) wiki links embedded in the page and store them in a data structure of your choice.
4) Repeat Step 3 for all newly found links and store them in the same data structure
5) This process should terminate after n cycles.
Optional:
1) Optimize your code not to visit any links you've already visited.
2) Write the results ( all found links, total count, unique count ) to a CSV/JSON file.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!