Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Principles Of Multimedia Database Systems

Authors: V.S. Subrahmanian

1st Edition

1558604669, 978-1558604667

More Books

Students also viewed these Databases questions