This repository has the code-base to web scrape using Java and htmlUnit in Maven.
Code will navigate to user given URL and find out the link in the page, will travel to each link and store the URLs in CSV file.
Scraper.java class has the functions to scrape it through. Documented comments are added for your easiness.