Example #1
0
        public virtual bool Handle(ref Page page, ISpider spider)
        {
            if (page == null || string.IsNullOrEmpty(page.Content))
            {
                return(true);
            }

            if (Termination == null || !Termination.IsTermination(page, this))
            {
                page.AddTargetRequests(GenerateRequests(page));
                page.SkipExtractedTargetUrls = true;
            }

            return(true);
        }
Example #2
0
 public virtual void Handle(ref Page page, ISpider spider)
 {
     if (page != null && !string.IsNullOrEmpty(page.Content) && !string.IsNullOrEmpty(PaggerString) && (Termination == null || !Termination.IsTermination(page, this)))
     {
         page.AddTargetRequests(GenerateRequests(page));
         page.SkipExtractedTargetUrls = true;
     }
 }