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 scriptsh which takes in parameter.
$ represents an initial url to visit
Your script will crawl the website starting with $ Your script will download $ and examine any links to other html files in $ 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 $ 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 the following command can be used.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
