Exemplo 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));
            }
        }
Exemplo n.º 2
0
 public CrawlingAndIndexs(Crawling crawling, string name)
 {
     Crawling      = new Crawling(crawling);
     Crawling.Name = name;
     indexs        = new List <string>();
 }
Exemplo n.º 3
0
 public CrawlingAndIndexs(Crawling crawling)
 {
     Crawling = crawling;
     indexs   = FileHelper.LoadIndexFile(crawling);
 }