コード例 #1
0
        /// <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;
        }
コード例 #2
0
        // 스케줄 정보 얻기
        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));
        }