Ejemplo n.º 1
0
        public Crawling(Crawling crawling) : this()
        {
            Url       = new MyUrl(crawling.Url);
            BaseXPath = crawling.BaseXPath;

            foreach (Word word in crawling.WordList)
            {
                WordList.Add(new Word(word));
            }

            foreach (BaseAction action in crawling.ActionList)
            {
                ActionList.Add(new BaseAction(action));
            }
            foreach (CrawlingInfo info in crawling.OtherCrawlingList)
            {
                OtherCrawlingList.Add(new CrawlingInfo(info));
            }
            foreach (UrlOption option in crawling.UrlOptionLIst)
            {
                UrlOptionLIst.Add(new UrlOption(option));
            }
            foreach (WhenCrawling when in crawling.WhenList)
            {
                WhenList.Add(new WhenCrawling(when));
            }
        }
Ejemplo n.º 2
0
 public Crawling()
 {
     Url               = new MyUrl();
     WordList          = new List <Word>();
     OtherCrawlingList = new List <CrawlingInfo>();
     ActionList        = new List <BaseAction>();
     UrlOptionLIst     = new List <UrlOption>();
     WhenList          = new List <WhenCrawling>();
 }