Question: Tasks/ Skills Should be done using C++ String parsing. Using an array, vector or recursion. Steps 1.Retrieve the web page found at http://www.msn.com/ 2.Report all

Tasks/ Skills

Should be done using C++

String parsing.

Using an array, vector or recursion.

Steps

1.Retrieve the web page found at http://www.msn.com/

2.Report all the URLs that are foundon that page.

3.For each found URL, retrieve its web page and report all the URLs that are found on that page.

4.Only report URLs to a depth of 2.

5.When reporting the URLs the hierarachy should beclear. Here is one way to format the output:

link 1: www.msn.com

link 1: www.abc.com/index.html

link 1: www.abc.com/contact_us.html

link 2: www.abc.com/about_us.html

link 2: www.xyz.com/index.php

link 1: www.xyz.com/contact_us.html

Notes

You only need to find hyperlinks defined by the HTML tag.

Do notreport or follow any hyperlink that is a bookmark on the same webpage. A bookmark is a href value starting with a # character.

Do notreport or follow any hyperlink that starts with javascript.

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!