Example #1
0
        public List<FreeDocument> CrawlData(HtmlDocument doc)
        {
            if (CrawlItems.Count == 0)
            {
                var freedoc = new FreeDocument();
                freedoc.Add("Content", doc.DocumentNode.OuterHtml);

                return new List<FreeDocument> {freedoc};
            }
            return doc.GetDataFromXPath(CrawlItems, IsMultiData, RootXPath);
        }