Пример #1
0
        /// <summary>
        /// 返回页面时间
        /// </summary>
        /// <returns></returns>
        public DateTime returnPageTime() //返回页面时间
        {
            wb.Forward();
            var task1 = wb.GetSourceAsync();

            task1.Wait();
            string html = task1.Result;

            var documenthtml = new JumonyParser().Parse(html);

            string time = documenthtml.GetElementById("source").FindFirst(".time").InnerText().ToString();

            return(DateTime.Parse(time));
        }