//protected string GetScheduleHtml() //{ //var html = new WebClient().DownloadString(@"http://www.booktv.org/Schedule.aspx"); //File.WriteAllText(@"C:\booktv.txt", html); //var htmlFromFile = File.ReadAllText(@"C:\booktv.txt"); //return htmlFromFile; //} public List <Segment> GetSegments() { var html = htmlLoader.LoadUrl(configurationManager.BookTvScheduleUrl); var doc = new HtmlDocument().LoadFromHtml(html); return(segmentParser.ParseSegments(doc)); }