示例#1
0
 public static NScrapy GetInstance()
 {
     if (_instance == null)
     {
         _instance = new NScrapy();
     }
     return(_instance);
 }
示例#2
0
        public void EngineTest()
        {
            NScrapy.Shell.NScrapy scrapy  = NScrapy.Shell.NScrapy.GetInstance();
            HttpRequest           request = new HttpRequest()
            {
                URL = "http://www.baidu.com"
            };

            scrapy.Context.CurrentEngine.ProcessRequest(request);
        }