Commit Graph
4 Commits
Author SHA1 Message Date
Elendil 05368bee59 Optimized the Structure of the Entire Project
Involve HtmlAgilityPack and HtmlAgilityPack.CssSelector.NetCore in Infra
To help Getting element through CSS Selector
2018-04-18 22:12:37 +08:00
Elendil 18c4dca3ab Created base structure of NScrapy Shell, Engine, Scheduler, Downloader
Engine:
1.Configurable in appsetting.json to choice a real engine or a mock engine for test
2.Listen to Item queue to handle the request sent by Scheduler
Shell:
1.Init Context for NScrapy to run
	1).Read Config
2.Get Spider through Spider Factory
Scheduler:
1.Send request to Queue which the engine is listening
Downloader
1.Init DownloaderPool
2.Asyncly Process all the incoming request by picking a Downloader from DownloaderPool
*Test Case update
EngineTest:Test if the message can be sent to MockEngine through Shell->Spider->Scheduler->Engine
ConstructDownloader:Test if DownloaderPool can work, if the Downloader can actually get response from Website
2018-04-12 00:27:39 +08:00
Elendil 4096ac1abf Framework setup 2018-04-09 01:03:14 +08:00
Elendil 318ae792bd Init checkin of NScrapy 2018-04-05 00:20:49 +08:00