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