private LinkCollector CreateLinkCollector(string uri, string htmlString)
 {
     var baseUri = new Uri(uri);
     var html = ToHtmlDocument(htmlString);
     var linkCollector = new LinkCollector{Log = new CrawlerLog()};
     linkCollector.Collect(baseUri, html);
     return linkCollector;
 }
示例#2
0
 public LinkCollector AddLinkCollector()
 {
     var lc = new LinkCollector();
     AddCollectors(lc);
     return lc;
 }