示例#1
0
 public static void Main(string[] args)
 {
     ScraperOptions options = new ScraperOptions();
       if (CommandLine.Parser.Default.ParseArguments(args,options)) {
     AllocateScraper scraper = new AllocateScraper (options);
     Console.WriteLine("Logging in");
     scraper.LogIn();
     Console.WriteLine("Getting your timetable");
     scraper.GetTimeTable();
     ICalCreator creator = new ICalCreator ("calendar.ical");
     Console.WriteLine("Saving your timetable");
     creator.CreateICal(scraper.GetEvents());
     Console.WriteLine("Processed Successfully!");
       }
 }
 public AllocateScraper(ScraperOptions options)
 {
     this.options = options;
       cookieJar = new CookieContainer();
       events = new List<ICalEvent> ();
 }