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); }
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; } }