internal protected override sealed void Init(ICrawlerProvider provider)
        {
            config(this);
            node = GetNode(provider.GetDocument(Source));
            var list = new Dictionary <string, Func <dynamic> >();

            foreach (var member in members)
            {
                var mm = member;
                var p  = provider;
                var n  = node;
                list.Add(mm.Key, () => {
                    var obj = mm.Value(n);
                    obj.Init(p);
                    return(obj.Value);
                });
            }
            Crawlers = list;
        }
Esempio n. 2
0
        internal protected override sealed void Init(ICrawlerProvider provider)
        {
            Nodes = GetNods(provider.GetDocument(Source));//.Take(40);

            Crawlers = ParseNodes(provider);
        }
 internal protected override sealed void Init(ICrawlerProvider provider)
 {
     node  = GetNode(provider.GetDocument(Source));
     value = node == null?default(T):ConvertValue(node);
 }