Esempio n. 1
0
        static void Main(string[] args)
        {
            if (args.Length < 1)
            {
                Console.WriteLine("Run with argument gather/train/born");
            }
            else
            {
                if (String.Compare(args[0], "gather", true) == 0)
                {
                    GatherForTrain gather = new GatherForTrain();
                    gather.Process();
                }
                else if (String.Compare(args[0], "train", true) == 0)
                {
                    TrainBot train = new TrainBot();
                    train.Process();
           
                }
                else if (String.Compare(args[0], "born", true) == 0)
                {
                    YearBornBot bot = new YearBornBot();
                    bot.Process(args[1]);
                }
            }

        }
Esempio n. 2
0
 public CollectionWorker(GatherForTrain bot, String name,
                         int year)
 {
     this.bot    = bot;
     this.name   = name;
     this.year   = year;
     this.search = new YahooSearch();
 }
Esempio n. 3
0
 public CollectionWorker(GatherForTrain bot, String name,
         int year)
 {
     this.bot = bot;
     this.name = name;
     this.year = year;
     this.search = new YahooSearch();
 }