Example #1
0
        static void Main()
        {
            Console.OutputEncoding = Encoding.UTF8;

            var taskSolver = new TaskSolver();

            taskSolver.DownloadRss(RssLink, XmlPath);
            var xmlDoc = taskSolver.GetXml(XmlPath);
            var jsonObj = taskSolver.GetJsonObject(xmlDoc);
            var titles = taskSolver.GetVideosTitles(jsonObj);
            taskSolver.PrintVideoTitles(titles);

            var videos = taskSolver.GetVideos(jsonObj);
            var html = taskSolver.GetHtmlString(videos);
            taskSolver.SaveHtml(html, HtmlName);
        }
Example #2
0
        static void Main()
        {
            Console.OutputEncoding = Encoding.UTF8;

            var taskSolver = new TaskSolver();

            taskSolver.DownloadRss(RssLink, XmlPath);
            var xmlDoc  = taskSolver.GetXml(XmlPath);
            var jsonObj = taskSolver.GetJsonObject(xmlDoc);
            var titles  = taskSolver.GetVideosTitles(jsonObj);

            taskSolver.PrintTitles(titles);

            var videos = taskSolver.GetVideos(jsonObj);
            var html   = taskSolver.GetHtmlString(videos);

            taskSolver.SaveHtml(html, HtmlName);
        }