This project is experimental crawling on web and desktop contents. Simple implementation is bellow on console project.

    class Program
    {
        private static string __ENTRYPOINT = "d:\\";

        static void Main(string[] args)
        {
            var settings = new MyCollection();
            settings.SetItem(new MyCollectionItem() { Name = "EntryPoint", Value = __ENTRYPOINT });
            settings.SetItem(new MyCollectionItem() { Name = "MaxThreadCount", Value = 30 });

            var cr = CrawlerFactory.CreateCrawler(settings);

            cr.OnCrawlStarted += cr_OnCrawlStarted;
            cr.OnItemCrawled += cr_OnItemCrawled;
            cr.OnCawlError += cr_OnCawlError;
            cr.OnCrawlFinished += cr_OnCrawlFinished;

            cr.Begin();

        }
    }

Last edited Nov 30, 2012 at 5:59 PM by omerfarukz, version 4