예제 #1
0
 public void SetUp()
 {
     this.spider = new Spider();
     this.spider.AddBehavior(new DelayBehavior(TimeSpan.FromSeconds(10)));
     this.spider.TimeOut = 8;
 }
예제 #2
0
 public void SetUp()
 {
     this.spider = new Spider();
     this.spider.AddBehavior(new CookieBehavior("PREF", "cookie-information"));
 }
예제 #3
0
 public void SetUp()
 {
     this.spider = new Spider();
 }
 public void Constructor_ThrowsExceptionWhenFinalIntervalLessThanInitialInterval()
 {
     this.spider = new Spider();
     this.spider.AddBehavior(new RandomDelayBehavior(TimeSpan.FromSeconds(10), TimeSpan.FromSeconds(1)));
 }
 public void SetUp()
 {
     this.spider = new SynchronizedSpider();
 }
예제 #6
0
 public Engine(IEngineConfiguration configuration)
 {
     this.parser = configuration.Parser;
     this.urlBuilder = configuration.UrlBuilder;
     this.spider = configuration.Spider;
 }