Question: For this assignment write a script called script 8 . sh which takes in 1 parameter. $ 1 , represents an initial url to visit

For this assignment write a script called script8.sh which takes in 1 parameter.
$1, represents an initial url to visit
Your script will crawl the website starting with $1. Your script will download $1 and examine any links to other html files in $1. Your script will then download those files and find links to other HTML files. It will continue this process until it has found every file that can be reached from $1. All links are found in anchor() tags.
Once your script has visited every reachable file, print a list of all files for the website to stdout. The sites should be listed in alphabetical order. You can assume that all HTML files are on the same server.
A set of html files are provided in the site directory of the starter files. To setup a temporary web server on port 8000, the following command can be used.

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 Databases Questions!