Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a program that downloads a website for offline browsing. The program should read the URL of the intended website from the console, then downloads
Write a program that downloads a website for offline browsing. The program should read the URL of the intended website from the console, then downloads all those pages onto the local hard drive. The program should work as follows: 1. Downloads the index page of the entered URL (including images and videos). 2. Parses all the URLs in the current page and store them in a certain data structure (i.e. ArrayList). Distributes the URLs among N threads (use Callable Interface). Each thread will repeat step #1 and step #2 until no new URLs are identified in all pages. 4. Ignores any URL that does not belong to the entered URL. 3
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started