예제 #1
0
        private IRuleValue RenderOne(ISpiderContainer container, IRuleValue value)
        {
            var content = value.ToString();

            GetUrlFromCustom(container, ref content);
            return(new RuleString(content));
        }
예제 #2
0
        private IRuleValue RenderOne(ISpiderContainer container, IRuleValue value)
        {
            var content = value.ToString();

            if (container.Url.Type == UriType.Css)
            {
                GetUrlFromCss(container, ref content);
            }
            else
            {
                GetUrlFromHtml(container, ref content);
            }
            return(new RuleString(content));
        }