/// <summary> /// Creates a new trigger instance. /// </summary> /// <param name="tasks">The tasks handler.</param> /// <param name="schedule">The schedule.</param> public CrawlerTriggerSchedule(ICrawlerTasks tasks, CrawlerSchedule schedule) : base(tasks) { // Validate the arguments. if (null == schedule) throw new ArgumentNullException("schedule"); // Set the schedule. this.schedule = schedule; }
// 스케줄 정보 얻기 public List <Schedule> GetSchedule(Int32 year, Int32 month) { InitCromeDriver(); CrawlerSchedule crawler = new CrawlerSchedule(chromeDriver); crawler.Init(year, month); String html = crawler.GetHTML(); return(Parser.ParserShedule.Instance.Parse(html, year, month)); }