This project is read-only.

Sample Console App

Below is a sample console application which returns the URI's found when crawling the provided URI.

using System;
using HttpCrawler.Engine;

namespace HttpCrawler.Demo
{
    class Program
    {
        static void Main(string[] args)
        {
            var httpCrawler = new HttpCrawlerEngine(new Uri("http://www.joeysopinion.com"));

            var urls = httpCrawler.Crawl();

            foreach (var url in urls)
            {
                Console.WriteLine(url);
            }

            Console.Read();
        }
    }
}

Last edited Jul 5, 2010 at 6:55 AM by joeyj, version 9

Comments

No comments yet.