This project is read-only.

Here I will shortly discuss the AutoParsers folder in the source code.

The cornerstone of the Autoparsers' class library is IAutoParser.cs interface. The main function signature of parsing cars is defined here.  The function returns a general type - ParsedCar which is saved to database later on.

Classes which are placed in WebsiteParsers's folder implement the described interface. These classes themselves collect data from different websites - by conducting request-response and parsing html data.

There is also defined ParseService.cs class which create reference to the interface and creates object depending on the incoming request - in case user requested to import car information from website the corresponding class AutoGeParser.cs object will be created.


The approach used here is much like to Strategy design pattern where Context corresponds to ParseService.

Last edited Feb 14, 2014 at 6:11 PM by levic, version 1


No comments yet.