Webpage Link Mapping - C++ School Project

Hi I'm new to C++, and I'm now in Programming 2 at my school.
We have a project that has the following requirements.

Webpage Link Mapping: The program accepts a URL, a search depth, and an output file name as input. It then visits the given web page and searches the page for links to other web pages, which it saves. It then visits each of those web pages and repeats the process iteratively until it reaches the depth that was specified in the input argument (be careful with the depth specified, or the program may not terminate in a reasonable time). The program outputs all the links to the specified text file.

We've never built any program like this, we've been focused on command prompt like programs so far. This is a huge leap for me, can anyone help me get started. For starters how would you begin a project like this. Thanks, any info would be helpful.
Hi there,

What you want is a web-spider - these can be both simple and complex at the same time. You can find some good resources on the web for this. I have to admit I have never wrote one myself but you can find some source code to one here:

http://www.example-code.com/vcpp/spider.asp

I hope this helps you find what you are looking for.

Regards,

Phil.
Topic archived. No new replies allowed.