Prompt

Introduction

Please only spend 2-4 hours on this. We are interested in the code design and the choices you make. Any works that make the code better (especially when you work in a team) are also welcomed. If you run out of time, please include a document outlining how you would finish.

Restrictions:

Problem

Please implement a command line program that can fetch web pages and saves them to disk for later retrieval and browsing.

Section 1

For example, if we invoked your program like this: ./fetch [<https://www.google.com>](<https://www.google.com>) then in our current directory we should have a file containing the contents of www.google.com. (i.e. /home/myusername/www.google.com.html).

We should be able to specify as many urls as we want:

$> ./fetch <https://www.google.com> <https://autify.com> <...>
$> ls
autify.com.html www.google.com.html

If the program runs into any errors while downloading the html it should print the error to the console.

Section 2

Record metadata about what was fetched:

Modify the script to print this metadata.