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; }
public LinkCollector AddLinkCollector() { var lc = new LinkCollector(); AddCollectors(lc); return lc; }