示例#1
0
 public LibaSpider(SpiderSetting st, UrlManager m)
     : base(st, m)
 {
     maxMemoSize = 0;
 }
        private UrlQueue urlQueue; //URL队列

        #endregion Fields

        #region Constructors

        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="st">SpiderSetting</param>
        /// <param name="urlMgr">UrlManager</param>
        public SpiderBase(SpiderSetting st, UrlManager urlMgr)
            : this()
        {
            this.settings = st;
            this.urlManager = urlMgr;
        }
示例#3
0
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="st">SpiderSetting</param>
 /// <param name="urlMgr">UrlManager</param>
 public SpiderBase(SpiderSetting st, UrlManager urlMgr)
     : this()
 {
     this.settings   = st;
     this.urlManager = urlMgr;
 }