public static NScrapy GetInstance() { if (_instance == null) { _instance = new NScrapy(); } return(_instance); }
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); }