Пример #1
0
 public IEnumerable<IDocument> Execute(IReadOnlyList<IDocument> inputs, IExecutionContext context)
 {
     HtmlQuery query = new HtmlQuery(_querySelector).First();
     if (_outerHtml)
     {
         query.GetOuterHtml(_metadataKey);
     }
     else
     {
         query.GetInnerHtml(_metadataKey);
     }
     return query.Execute(inputs, context);
 }
Пример #2
0
        public IEnumerable <IDocument> Execute(IReadOnlyList <IDocument> inputs, IExecutionContext context)
        {
            HtmlQuery query = new HtmlQuery(_querySelector).First();

            if (_outerHtml)
            {
                query.GetOuterHtml(_metadataKey);
            }
            else
            {
                query.GetInnerHtml(_metadataKey);
            }
            return(query.Execute(inputs, context));
        }