Ejemplo n.º 1
0
 protected BaseIncrementTargetUrlsCreator(string paggerString, ITargetUrlsCreatorStopper stopper, int interval = 1)
 {
     if (string.IsNullOrEmpty(paggerString))
     {
         throw new SpiderException("PaggerString should not be null.");
     }
     PaggerString  = paggerString;
     Interval      = interval;
     Stopper       = stopper;
     PaggerPattern = new Regex($"{RegexUtil.NumRegex.Replace(PaggerString, @"\d+")}");
 }
Ejemplo n.º 2
0
 public IncrementPostTargetUrlsCreator(string paggerString, ITargetUrlsCreatorStopper stopper, int interval = 1) : base(paggerString, stopper, interval)
 {
 }