public void HtmlHelper() { // var list = hthservices.Utils.HtmlHelper.SearchDataFromVietBaoUrl("Phim", 1, DateTime.Now); // var cn = new Channel() { LinkVietBao = "/lich-phat-song/vtv1.html" }; // var list = hthservices.Utils.HtmlHelper.GetDataFromVietBaoUrl(cn, DateTime.Now.AddDays(1)); // var list = hthservices.Utils.DataProcess.GetSchedulesOfChannel("VTV1", DateTime.Now.AddDays(10)); //var cn = new ChannelToServer() { Server = DataStatic.FROM_MYTIVI_PAGE, ChannelKey = "HTV7", Value = "19" }; //var list = hthservices.Utils.HtmlHelper.GetDataFromMyTVUrl(cn, DateTime.Now); //var str = System.Text.RegularExpressions.Regex.Unescape("Ti\u1ebfp t\u1ee5c ch\u01b0\u01a1ng tr\u00ecnh"); ; //var cn = new ChannelToServer() { Server = DataStatic.FROM_VTC14_PAGE, ChannelKey = "VTC14", Value = "" }; //var list = hthservices.Utils.HtmlHelper.GetVTC14Url(cn, DateTime.Now); var VN_Now = DateTime.UtcNow.AddHours(7); var cn = new ChannelToServer() { Server = DataStatic.FROM_KPLUS_PAGE, ChannelKey = "K+NS", Value = "7010", ExtraValue = "11" }; var list = hthservices.Utils.HtmlHelper.GetDataFromKPlusUrl(cn, DateTime.Now.AddDays(1)); //var list = hthservices.Utils.DataProcess.GetSchedulesOfChannel("K+1", DateTime.Now.AddDays(1),""); // var query = "đồng+tiền"; // var enc = System.Web.HttpUtility.UrlEncode(query); // var res = hthservices.Utils.DataProcess.SearchDataFromVietBaoUrl(query, 11, DateTime.Now.AddDays(-1)); // var url = "http://www.menneske.no/sudoku/eng/random.html?diff=1"; // var diff = 1; // var res = hthservices.Sudoku.HtmlHelper.GenSudoku(diff); }
//just current date public static List<GuideItem> GetDataFromATVUrl(ChannelToServer channelToServer, DateTime date) { string url = channelToServer.Server; List<GuideItem> guideItems = new List<GuideItem>(); try { using (HttpClient http = new HttpClient()) { var response = http.GetByteArrayAsync(url).Result; String source = Encoding.GetEncoding("utf-8").GetString(response, 0, response.Length - 1); // source = System.Text.RegularExpressions.Regex.Unescape(source); source = WebUtility.HtmlDecode(source); HtmlDocument resultat = new HtmlDocument(); resultat.LoadHtml(source); var items = resultat.DocumentNode.SelectNodes("//div[@style='font-size:12px;font-family:Arial;']//div"); if (items != null && items.Count > 3) { for (int i = 0; i < items.Count - 2; i = i + 3) { string startOn = "", programName = ""; // get start time startOn = items[i].InnerText.Replace("g",":").Trim(); programName = items[i + 1].InnerText.Trim(); if (!string.IsNullOrWhiteSpace(startOn) && startOn.Length < 6) { var guideItem = new GuideItem() { ChannelKey = channelToServer.ChannelKey, DateOn = MethodHelpers.ConvertDateToCorrectString(date), StartOn = startOn, ProgramName = programName, Note = "" }; guideItems.Add(guideItem); } } } } } catch (Exception ex) { } return guideItems; }
public static List<GuideItem> GetDataFromSCTVUrl(ChannelToServer channelToServer, DateTime date) { string postdata = "ctl00%24RadScriptManager1=ctl00%24RadScriptManager1%7Cctl00%24ContentPlaceHolder1%24ctl00%24ctl01%24ddlChannel&ctl00_RadScriptManager1_TSM=%3B%3BSystem.Web.Extensions%2C%20Version%3D4.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D31bf3856ad364e35%3Aen-US%3Afa6755fd-da1a-49d3-9eb4-1e473e780ecd%3Aea597d4b%3Ab25378d2%3BTelerik.Web.UI%2C%20Version%3D2012.1.411.35%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D121fae78165ba3d4%3Aen-US%3A4cad056e-160b-4b85-8751-cc8693e9bcd0%3A16e4e7cd%3Aed16cbdc%3Af7645509%3A7c926187%3A8674cba1%3Ab7778d6c%3Ac08e9f8a%3Aa51ee93e%3A59462f1&ctl00%24txtMasterSearch=&ctl00%24ContentPlaceHolder1%24ctl00%24ctl01%24ddlChannel={0}&ctl00%24ContentPlaceHolder1%24ctl00%24ctl01%24sDate={1}&ctl00%24ContentPlaceHolder1%24ctl00%24ctl01%24sDate%24dateInput={1}-00-00-00&ctl00_ContentPlaceHolder1_ctl00_ctl01_sDate_dateInput_ClientState=%7B%22enabled%22%3Atrue%2C%22emptyMessage%22%3A%22%22%2C%22minDateStr%22%3A%221%2F1%2F1900%200%3A0%3A0%22%2C%22maxDateStr%22%3A%2212%2F31%2F2099%200%3A0%3A0%22%2C%22enteredText%22%3A%22%22%7D&ctl00_ContentPlaceHolder1_ctl00_ctl01_sDate_calendar_SD=%5B%5D&ctl00_ContentPlaceHolder1_ctl00_ctl01_sDate_calendar_AD=%5B%5B1900%2C1%2C1%5D%2C%5B2099%2C12%2C30%5D%2C%5B2016%2C11%2C8%5D%5D&ctl00_ContentPlaceHolder1_ctl00_ctl01_sDate_ClientState=%7B%22minDateStr%22%3A%221%2F1%2F1900%200%3A0%3A0%22%2C%22maxDateStr%22%3A%2212%2F31%2F2099%200%3A0%3A0%22%7D&__EVENTTARGET=ctl00%24ContentPlaceHolder1%24ctl00%24ctl01%24ddlChannel&__EVENTARGUMENT=&__LASTFOCUS=&__VIEWSTATE=fRepT7VnRi1tR5gB%2B37gBTI5KGSf3sG4dVKw3AA3FHxSrdhEUY9VU7lbnWOcjoIqSR37oGCbFpl0Mk4CblHGf6DyfQh2Z9XpAbzyCXb5NBwggZNEBiecEaJYQp0bPSQKsevWRjlgDkEtJ0CTTJD5DLzv5rPfrbf8L8MfGEmcuQvMoYBmMQS1frQudH6Uuod8oOUM%2FV5UFSzDbhYCFGOU6a527bjQMsBsuk3Uf3RQzqOm65DPquteyBQDYjwB%2BtruMGa6pUOwU%2BjpInvMEkS%2BGfFXf7QdjFfzYX1RVsIFsgY%2B%2F4k6ly6Ak%2Fwj9J%2FBiPzK1Ws1Il%2B7g3cyzjT6A0apkNnl%2FR5XNuptpEA9fm15JAnBqNgA8ObZATIKCPsfWYTFqOUHyZPKEZ4w%2FLwavVzUnc2J57%2FXB4a9RmOwDI7C%2BmhkPrxDgxOfjb7wKhFa8rHAtMX0LgMhJ3QkVcKFxqvt%2FSdH6a88do%2BXUG1G25yOYgviBaNRHv2EyGVSNqqllp1RZWTSqHLUcFRh9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wwCt3ZH3sAhAPS2eGRxFxIYmC5vz%2Bs1iHefb%2BhejowY%2FnSXLAr4LQoC7ud0X92QF8bhtPoroUW1rFILASWuLrf9C6RBzQeZXMLOBWirvoKSlSlPVpahodKO8kSi8KlIGaTfRzazBmNbVx2S7RV8Uy%2FQHebP4c%2FvsuKml19N9biZytosMTl09NnZ5sQwhlSlQuHBjLBwR6pp%2F0ve%2FfHvV9LthDmYlzwtSM%2FIOpGrA0lJLmJ1AyvCYx%2FX4lzBXVXIYQq%2B%2FkhvB8f1vHxW4AZc9hpqNuuibj5i2tauPKGqhOZwN6688O0HUT%2B%2B4meg8lmxd3eD6fXFFn0gY%2BUPuERjR7w4AtgBmp0z%2BXhICOyj0%2FCAfmzTEvjr0mdrs4Z3Ka7pwJY5VThv97W%2FfbT0w9nYlHsOpiEtkoEjDoFUv6gUoE%2FDTDDTLIXLrqR3tP0PwXDMvHFJxY67cAjRCl8d7NOGpt7jDIa59vW%2BTc1vQCsHtkeS6LnfmauMii2DdFrW6r8sWVa%2FnYt03uNR6TxpMR5N5Vm3W3ocNN4g6HWhdw6OlQFQBCGDfbFcmSNrcTZZsXzJ4Z20okhypYv%2FDg1uIhdIO4V%2FbMPfJtZ1R%2FUhMrn02rnOc0O6ViP7k7DlTUtvr5sMx3anbUJVn48Do1uSoFz4twUL3LCHYYmKDePqYL9V8ph2RPtd3YSrn%2Fh080g62VKpM1PZjwovKNbBNh5y23RA3VJe0rW7QqRqMMC%2FJl6DVSvrgtVvQkhSBh%2FCrP5Ni9OQbEhnL%2FACqoq4BGWp%2FGLxxJtY%2BEA%3D%3D&__ASYNCPOST=false&";//2016-08-15 string url = String.Format(channelToServer.Server); List<GuideItem> guideItems = new List<GuideItem>(); try { using (var http = new HttpClient()) { http.DefaultRequestHeaders.Add("X-Requested-With", "XMLHttpRequest"); var stringContent = string.Format(postdata, channelToServer.Value, date.ToString("yyyy-MM-dd")); var httpContent = new StringContent(stringContent, Encoding.UTF8, "application/x-www-form-urlencoded"); var response = http.PostAsync(url, httpContent).Result; if (response.IsSuccessStatusCode) { var bytes = response.Content.ReadAsByteArrayAsync().Result; String source = Encoding.GetEncoding("utf-8").GetString(bytes, 0, bytes.Length - 1); source = System.Text.RegularExpressions.Regex.Unescape(source); source = WebUtility.HtmlDecode(source.Replace("\"", "")); HtmlDocument resultat = new HtmlDocument(); resultat.LoadHtml(source); var schedules = resultat.DocumentNode.SelectNodes("//div[@class='schedule']"); if (schedules != null && schedules.Count > 0) { var items = schedules.FirstOrDefault().SelectNodes("table//tr"); foreach (var item in items) { string startOn = "", programName = ""; // get start time var tdTags = item.SelectNodes("td"); if (tdTags != null && tdTags.Count > 1) { startOn = tdTags.ElementAt(0).InnerText.Trim(); programName = tdTags.ElementAt(1).InnerText.Trim(); } if (!string.IsNullOrWhiteSpace(startOn)) { var guideItem = new GuideItem() { ChannelKey = channelToServer.ChannelKey, DateOn = MethodHelpers.ConvertDateToCorrectString(date), StartOn = startOn, ProgramName = programName, Note = "" }; guideItems.Add(guideItem); } } } } } } catch (Exception ex) { } return guideItems; }
public static List<GuideItem> GetDataFromHTV3TVUrl(ChannelToServer channelToServer, DateTime date) { string url = String.Format(channelToServer.Server, date.ToString("yyyy-MM-dd")); List<GuideItem> guideItems = new List<GuideItem>(); try { HttpClient http = new HttpClient(); var response = http.GetByteArrayAsync(url).Result; String source = Encoding.GetEncoding("utf-8").GetString(response, 0, response.Length - 1); source = WebUtility.HtmlDecode(source); HtmlDocument resultat = new HtmlDocument(); resultat.LoadHtml(source); var items = resultat.DocumentNode.SelectNodes("li"); if (items != null) { foreach (var item in items) { string startOn = "", programName = ""; // get start time var timeTV = item.SelectNodes("div//div[@class='time-show-cal']"); if (timeTV != null && timeTV.Count > 0) { var spans = timeTV.FirstOrDefault().SelectNodes("span"); if (spans != null && spans.Count > 0) { startOn = spans.ElementAt(0).InnerText.Trim(); } } var tDetails = item.SelectNodes("div//div[@class='detail-show']"); // get program name if (tDetails != null && tDetails.Count > 0) { var tDetail = tDetails.FirstOrDefault(); if(tDetail!=null){ var spans = tDetail.SelectNodes("span"); var h4s = tDetail.SelectNodes("h4"); if (spans != null && spans.Count > 0) { if (h4s == null || h4s.Count == 0) { programName = spans.FirstOrDefault().InnerText.Trim(); } else { programName = spans.FirstOrDefault().InnerText.Trim() + ": " + h4s.FirstOrDefault().InnerText.Trim(); } } else { if (h4s != null && h4s.Count > 0) { programName = h4s.FirstOrDefault().InnerText.Trim(); } } } } if (!string.IsNullOrWhiteSpace(startOn)) { var guideItem = new GuideItem() { ChannelKey = channelToServer.ChannelKey, DateOn = MethodHelpers.ConvertDateToCorrectString(date), StartOn = startOn, ProgramName = programName, Note = "" }; guideItems.Add(guideItem); } } } } catch (Exception ex) { } return guideItems; }
public static List<GuideItem> GetDataFromHITVUrl(ChannelToServer channelToServer, DateTime date) { string url = String.Format(channelToServer.Server); List<GuideItem> guideItems = new List<GuideItem>(); try { using (HttpClient http = new HttpClient()) { var response = http.GetByteArrayAsync(url).Result; String source = Encoding.GetEncoding("utf-8").GetString(response, 0, response.Length - 1); source = System.Text.RegularExpressions.Regex.Unescape(source); source = WebUtility.HtmlDecode(source); HtmlDocument resultat = new HtmlDocument(); resultat.LoadHtml(source); var schedulerMain = resultat.DocumentNode.SelectNodes("//div[@class='lich']"); if (schedulerMain != null && schedulerMain.Count > 0) { var items = schedulerMain.FirstOrDefault().SelectNodes("ul//li"); if (items != null) { foreach (var item in items) { string startOn = "", programName = ""; // get start time var spans = item.SelectNodes("span"); if (spans != null && spans.Count > 0) { startOn = spans.ElementAt(0).InnerText.Replace("h",":").Trim(); } var aTags = item.SelectNodes("a"); if (aTags != null && aTags.Count > 0) { programName = aTags.ElementAt(0).InnerText.Trim(); } if (!string.IsNullOrWhiteSpace(startOn)) { var guideItem = new GuideItem() { ChannelKey = channelToServer.ChannelKey, DateOn = MethodHelpers.ConvertDateToCorrectString(date), StartOn = startOn, ProgramName = programName, Note = "" }; guideItems.Add(guideItem); } } } } } } catch (Exception ex) { } return guideItems; }
public static List<GuideItem> GetDataFromHauGiangTVUrl(ChannelToServer channelToServer, DateTime date) { string url = channelToServer.Server; List<GuideItem> guideItems = new List<GuideItem>(); try { using (HttpClient http = new HttpClient()) { http.DefaultRequestHeaders.TryAddWithoutValidation("Accept", "text/html,application/xhtml+xml,application/xml"); http.DefaultRequestHeaders.TryAddWithoutValidation("Accept-Encoding", "gzip, deflate"); http.DefaultRequestHeaders.TryAddWithoutValidation("User-Agent", "Mozilla/5.0 (Windows NT 6.2; WOW64; rv:19.0) Gecko/20100101 Firefox/19.0"); var keys = new List<KeyValuePair<string, string>>() { new KeyValuePair<string, string>("fDay", date.Day.ToString()), new KeyValuePair<string, string>("fMonth", date.Month.ToString()), new KeyValuePair<string, string>("fYear", date.Year.ToString()), new KeyValuePair<string, string>("fKenh", "truyen-hinh"), new KeyValuePair<string, string>("submit", "Xem") }; var content = new System.Net.Http.FormUrlEncodedContent(keys); var response = http.PostAsync(url, content).Result; if (response.IsSuccessStatusCode) { var bytes = response.Content.ReadAsByteArrayAsync().Result; String source = Encoding.GetEncoding("utf-8").GetString(bytes, 0, bytes.Length - 1); source = System.Text.RegularExpressions.Regex.Unescape(source); source = WebUtility.HtmlDecode(source); HtmlDocument resultat = new HtmlDocument(); resultat.LoadHtml(source); var items = resultat.DocumentNode.SelectNodes("//div[@class='lich_content']//span"); if (items != null) { foreach (var item in items) { string detail = item.InnerText.Trim(); int index = detail.IndexOf(":"); if (index < 1) continue; string startOn = "", programName = ""; // get start time startOn = detail.Substring(0, index).Replace("h",":").Trim(); programName = detail.Substring(index + 2).Trim(); if (!string.IsNullOrWhiteSpace(startOn)) { var guideItem = new GuideItem() { ChannelKey = channelToServer.ChannelKey, DateOn = MethodHelpers.ConvertDateToCorrectString(date), StartOn = startOn, ProgramName = programName, Note = "" }; guideItems.Add(guideItem); } } } } } } catch (Exception ex) { } return guideItems; }
public static List<GuideItem> GetDataFromGIALAITVUrl(ChannelToServer channelToServer, DateTime date) { string url = String.Format(channelToServer.Server, date.ToString("yyyy-MM-dd")); List<GuideItem> guideItems = new List<GuideItem>(); try { using (HttpClient http = new HttpClient()) { var response = http.GetByteArrayAsync(url).Result; String source = Encoding.GetEncoding("utf-8").GetString(response, 0, response.Length - 1); source = System.Text.RegularExpressions.Regex.Unescape(source); source = WebUtility.HtmlDecode(source); HtmlDocument resultat = new HtmlDocument(); resultat.LoadHtml(source); var schedulerMain = resultat.DocumentNode.SelectNodes("//div[@class='lichphatsong']"); if (schedulerMain != null && schedulerMain.Count > 0) { var contents = schedulerMain.FirstOrDefault().SelectNodes("div[@class='content']"); if (contents != null && contents.Count > 0) { var str = contents.FirstOrDefault().InnerHtml.Replace("<br>", "^"); var items = str.Split('^'); if (items != null) { foreach (var item in items) { int middle = item.IndexOf("\t"); if (middle >5) { string startOn = "", programName = ""; // get start time startOn = item.Substring(0, middle).Replace(":", "").Replace("h", ":").Trim(); programName = item.Substring(middle).Trim(); if (!string.IsNullOrWhiteSpace(startOn)) { var guideItem = new GuideItem() { ChannelKey = channelToServer.ChannelKey, DateOn = MethodHelpers.ConvertDateToCorrectString(date), StartOn = startOn, ProgramName = programName, Note = "" }; guideItems.Add(guideItem); } } } } } } } } catch (Exception ex) { } return guideItems; }
public static List<GuideItem> GetDataFromDRTUrl(ChannelToServer channelToServer, DateTime date) { string postdata = "ScriptManager=dnn%24ctr444%24ViewLPS_UP%7Cdnn%24ctr444%24ViewLPS%24ddlkenh&dnn%24ctr444%24ViewLPS%24ddlkenh={0}&dnn%24ctr444%24ViewLPS%24txtdate={1}%2F{2}%2F{3}&sites=&ScrollTop=&__dnnVariable=&__EVENTTARGET=dnn%24ctr444%24ViewLPS%24ddlkenh&__EVENTARGUMENT=&__LASTFOCUS=&__VIEWSTATE=%2FwEPDwUJMjgzMDU3ODk3D2QWBmYPFgIeBFRleHQFeTwhRE9DVFlQRSBodG1sIFBVQkxJQyAiLS8vVzNDLy9EVEQgWEhUTUwgMS4wIFRyYW5zaXRpb25hbC8vRU4iICJodHRw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HwFoZGQCBg8PFgIfAWhkZAIHD2QWCAIBDw8WAh8BaGRkAgMPZBYCAgEPZBYCAgEPZBYCZg9kFgICAg8WAh8BaGQCBQ8PFgIfAWhkZAIGDw8WAh8BaGRkAgkPZBYIAgEPDxYCHwFoZGQCAw9kFgICAQ9kFgICAQ9kFgJmD2QWAgICDxYCHwFoZAIFDw8WAh8BaGRkAgYPDxYCHwFoZGQCCw9kFggCAQ8PFgIfAWhkZAIDD2QWAgIBD2QWAgIBD2QWAmYPZBYCAgIPFgIfAWhkAgUPDxYCHwFoZGQCBg8PFgIfAWhkZAIRD2QWAgIBD2QWCAIBDw8WAh8BaGRkAgMPZBYCAgEPZBYCAgEPZBYCZg9kFgICAg8WAh8BaGQCBQ8PFgIfAWhkZAIGDw8WAh8BaGRkGAEFHl9fQ29udHJvbHNSZXF1aXJlUG9zdEJhY2tLZXlfXxYBBRlkbm4kY3RyNDQ0JFZpZXdMUFMkYnRkYXRlN2y3OvVj%2BAem2Wm%2BfeNIEYHhMSo%3D&__AjaxControlToolkitCalendarCssLoaded=&__ASYNCPOST=false&";//19/08/2016 string url = String.Format(channelToServer.Server); List<GuideItem> guideItems = new List<GuideItem>(); try { using (var http = new HttpClient()) { http.DefaultRequestHeaders.Add("X-Requested-With", "XMLHttpRequest"); var stringContent = string.Format(postdata, channelToServer.Value, date.Day, date.Month, date.Year); var httpContent = new StringContent(stringContent, Encoding.UTF8, "application/x-www-form-urlencoded"); var response = http.PostAsync(url, httpContent).Result; if (response.IsSuccessStatusCode) { var bytes = response.Content.ReadAsByteArrayAsync().Result; String source = Encoding.GetEncoding("utf-8").GetString(bytes, 0, bytes.Length - 1); source = System.Text.RegularExpressions.Regex.Unescape(source); source = WebUtility.HtmlDecode(source.Replace("\"", "")); HtmlDocument resultat = new HtmlDocument(); resultat.LoadHtml(source); var schedules = resultat.DocumentNode.SelectNodes("//span[@id='dnn_ctr444_ViewLPS_Label2']"); if (schedules != null && schedules.Count > 0) { var items = schedules.FirstOrDefault().SelectNodes("table//tr//td//p"); if (items != null) { foreach (var item in items) { string startOn = "", programName = ""; // get start time var strdata = item.InnerText.Trim(); var middle = strdata.IndexOf(":"); if (middle > 4) { startOn = strdata.Substring(0, middle).Replace("h", ":").Trim(); programName = strdata.Substring(middle).Replace(":", "").Replace("\n", ": ").Trim(); var guideItem = new GuideItem() { ChannelKey = channelToServer.ChannelKey, DateOn = MethodHelpers.ConvertDateToCorrectString(date), StartOn = startOn, ProgramName = programName, Note = "" }; guideItems.Add(guideItem); } } } } } } } catch (Exception ex) { } return guideItems; }
public static List<GuideItem> GetDataFromTruyenHinhSoUrl(ChannelToServer channelToServer, DateTime date) { string url = String.Format(channelToServer.Server, channelToServer.Value, date.ToString("dd/MM/yyyy")); List<GuideItem> guideItems = new List<GuideItem>(); try { HttpClient http = new HttpClient(); var response = http.GetByteArrayAsync(url).Result; String source = Encoding.GetEncoding("utf-8").GetString(response, 0, response.Length - 1); int start = source.IndexOf(",\"content\":\"") + 12, end = source.IndexOf("\",\"isSuccessful\":"); source = source.Substring(start, end - start); source = System.Text.RegularExpressions.Regex.Unescape(source); source = WebUtility.HtmlDecode(source); HtmlDocument resultat = new HtmlDocument(); resultat.LoadHtml(source); var items = resultat.DocumentNode.SelectNodes("//li"); if (items != null) { foreach (var item in items) { string startOn = "", programName = ""; // get start time var divTags = item.SelectNodes("div"); if (divTags != null && divTags.Count > 0) { var time = divTags.ElementAt(0).InnerText; int lenght = time.IndexOf("-"); startOn = time.Substring(0, lenght).Trim(); } var tDetail = item.ChildNodes; // get program name if (divTags != null && divTags.Count > 1) { programName = divTags.ElementAt(1).InnerText.Trim(); } var guideItem = new GuideItem() { ChannelKey = channelToServer.ChannelKey, DateOn = MethodHelpers.ConvertDateToCorrectString(date), StartOn = startOn, ProgramName = programName, Note = "" }; guideItems.Add(guideItem); } } } catch (Exception ex) { } return guideItems; }
public static List<GuideItem> GetDataFromTrueLifeTVUrl(ChannelToServer channelToServer, DateTime date) { string url = String.Format(channelToServer.Server, channelToServer.Value, date.ToString("yyyyMMdd")); List<GuideItem> guideItems = new List<GuideItem>(); try { using (HttpClient http = new HttpClient()) { var response = http.GetByteArrayAsync(url).Result; String source = Encoding.GetEncoding("utf-8").GetString(response, 0, response.Length - 1); source = System.Text.RegularExpressions.Regex.Unescape(source); int start = source.IndexOf("["), end =source.LastIndexOf("]") + 1; source = source.Substring(start, end - start); var items = JsonConvert.DeserializeObject<List<TrueLife>>(source); if (items != null && items.Count > 0) { foreach (var item in items) { string startOn = "", programName = ""; startOn = item.strTimeBegin.Substring(11,5).Trim(); programName = item.title.Trim(); if (!string.IsNullOrWhiteSpace(startOn)) { var guideItem = new GuideItem() { ChannelKey = channelToServer.ChannelKey, DateOn = MethodHelpers.ConvertDateToCorrectString(date), StartOn = startOn, ProgramName = programName, Note = "" }; guideItems.Add(guideItem); } } } } } catch (Exception ex) { } return guideItems; }
//just get current date public static List<GuideItem> GetDataFromTRTUrl(ChannelToServer channelToServer, DateTime date) { string url = channelToServer.Server; List<GuideItem> guideItems = new List<GuideItem>(); try { using (HttpClient http = new HttpClient()) { var response = http.GetByteArrayAsync(url).Result; String source = Encoding.GetEncoding("utf-8").GetString(response, 0, response.Length - 1); // source = System.Text.RegularExpressions.Regex.Unescape(source); source = WebUtility.HtmlDecode(source); HtmlDocument resultat = new HtmlDocument(); resultat.LoadHtml(source); var items = resultat.DocumentNode.SelectNodes("//td[contains(@id,'tbProgramChannel')]//tr"); if (items != null && items.Count > 0) { items.Remove(0); foreach (var item in items) { string startOn = "", programName = ""; // get start time var tdTags = item.SelectNodes("td"); if (tdTags != null && tdTags.Count > 1) { startOn = tdTags.ElementAt(0).InnerText.Trim(); programName = tdTags.ElementAt(1).InnerText.Trim(); } if (!string.IsNullOrWhiteSpace(startOn) && startOn.Length < 6) { var guideItem = new GuideItem() { ChannelKey = channelToServer.ChannelKey, DateOn = MethodHelpers.ConvertDateToCorrectString(date), StartOn = startOn, ProgramName = programName, Note = "" }; guideItems.Add(guideItem); } } } } } catch (Exception ex) { } return guideItems; }
public static List<GuideItem> GetDataFromTRAVINHTVUrl(ChannelToServer channelToServer, DateTime date) { string url = String.Format(channelToServer.Server); List<GuideItem> guideItems = new List<GuideItem>(); try { using (HttpClient http = new HttpClient()) { var stringContent = "{\"ngay\":\"" + date.ToString("yyyy-MM-dd") + "\"}"; var keys = new List<KeyValuePair<string, string>>() { new KeyValuePair<string, string>("ngay", date.ToString("yyyy-MM-dd")) }; var content = new System.Net.Http.FormUrlEncodedContent(keys); content.Headers.Clear(); content.Headers.Add("Content-Type", "application/x-www-form-urlencoded"); content.Headers.Add("X-Requested-With", "XMLHttpRequest"); var response = http.PostAsync(url, content).Result; if (response.IsSuccessStatusCode) { var bytes = response.Content.ReadAsByteArrayAsync().Result; String source = Encoding.GetEncoding("utf-8").GetString(bytes, 0, bytes.Length - 1); source = System.Text.RegularExpressions.Regex.Unescape(source); source = WebUtility.HtmlDecode(source); HtmlDocument resultat = new HtmlDocument(); resultat.LoadHtml(source); var schedulerMain = resultat.DocumentNode.SelectNodes("//div[@id='lichchitiet']"); if (schedulerMain != null && schedulerMain.Count > 0) { var items = schedulerMain.FirstOrDefault().SelectNodes("div"); if (items != null) { foreach (var item in items) { string startOn = "", programName = ""; // get start time var detail = item.InnerText.Trim(); if (detail.Length > 5) { startOn = detail.Substring(0, 5).Replace("g",":").Trim(); programName = detail.Substring(6).Trim(); } if (!string.IsNullOrWhiteSpace(startOn)) { var guideItem = new GuideItem() { ChannelKey = channelToServer.ChannelKey, DateOn = MethodHelpers.ConvertDateToCorrectString(date), StartOn = startOn, ProgramName = programName, Note = "" }; guideItems.Add(guideItem); } } } } } } } catch (Exception ex) { } return guideItems; }
public static List<GuideItem> GetDataFromTHSTUrl(ChannelToServer channelToServer, DateTime date) { string postdata = "Ngay={0}&X-Requested-With=XMLHttpRequest";//16/08/2016 string url = String.Format(channelToServer.Server); List<GuideItem> guideItems = new List<GuideItem>(); try { using (var http = new HttpClient()) { http.DefaultRequestHeaders.Add("X-Requested-With", "XMLHttpRequest"); var stringContent = string.Format(postdata, date.ToString("dd/MM/yyyy")); var httpContent = new StringContent(stringContent, Encoding.UTF8, "application/x-www-form-urlencoded"); var response = http.PostAsync(url, httpContent).Result; if (response.IsSuccessStatusCode) { var bytes = response.Content.ReadAsByteArrayAsync().Result; String source = Encoding.GetEncoding("utf-8").GetString(bytes, 0, bytes.Length - 1); source = System.Text.RegularExpressions.Regex.Unescape(source); HtmlDocument resultat = new HtmlDocument(); resultat.LoadHtml(source); var schedules = resultat.DocumentNode.SelectNodes("//marquee"); if (schedules != null && schedules.Count > 0) { var items = schedules.FirstOrDefault().SelectNodes("p"); foreach (var item in items) { string startOn = "", programName = ""; var strdata = HttpUtility.HtmlDecode(item.InnerText).Trim().Trim('-').Trim(); var tdTags = strdata.Split(':'); if (tdTags != null && tdTags.Length > 1) { startOn = tdTags.ElementAt(0).Trim(); startOn = startOn.Replace('h', ':').Trim(':'); programName = tdTags.ElementAt(1).Trim(); } if (!string.IsNullOrWhiteSpace(startOn)) { var guideItem = new GuideItem() { ChannelKey = channelToServer.ChannelKey, DateOn = MethodHelpers.ConvertDateToCorrectString(date), StartOn = startOn, ProgramName = programName, Note = "" }; guideItems.Add(guideItem); } } } } } } catch (Exception ex) { } return guideItems; }
//just get current date public static List<GuideItem> GetDataFromTHDTUrl(ChannelToServer channelToServer, DateTime date) { string url = channelToServer.Server; List<GuideItem> guideItems = new List<GuideItem>(); try { using (HttpClient http = new HttpClient()) { http.DefaultRequestHeaders.TryAddWithoutValidation("Accept", "text/html,application/xhtml+xml,application/xml"); http.DefaultRequestHeaders.TryAddWithoutValidation("Accept-Encoding", "gzip, deflate"); http.DefaultRequestHeaders.TryAddWithoutValidation("User-Agent", "Mozilla/5.0 (Windows NT 6.2; WOW64; rv:19.0) Gecko/20100101 Firefox/19.0"); http.DefaultRequestHeaders.TryAddWithoutValidation("Accept-Charset", "ISO-8859-1"); // http.DefaultRequestHeaders.AcceptEncoding.Add(new System.Net.Http.Headers.StringWithQualityHeaderValue("gzip")); var rs = http.GetAsync(url).Result; var response = rs.Content.ReadAsByteArrayAsync().Result; String source = Encoding.GetEncoding("utf-8").GetString(response, 0, response.Length - 1); // source = System.Text.RegularExpressions.Regex.Unescape(source); source = WebUtility.HtmlDecode(source); HtmlDocument resultat = new HtmlDocument(); resultat.LoadHtml(source); var items = resultat.DocumentNode.SelectNodes("//div[@class='schedule_content']"); if (items != null && items.Count > 0) { foreach (var item in items) { string startOn = "", programName = ""; // get start time var tdTags = item.SelectNodes("span"); if (tdTags != null && tdTags.Count > 1) { startOn = tdTags.ElementAt(0).InnerText.Trim(); programName = tdTags.ElementAt(1).InnerText.Trim(); } if (!string.IsNullOrWhiteSpace(startOn) && startOn.Length == 5) { var guideItem = new GuideItem() { ChannelKey = channelToServer.ChannelKey, DateOn = MethodHelpers.ConvertDateToCorrectString(date), StartOn = startOn, ProgramName = programName, Note = "" }; guideItems.Add(guideItem); } } } } } catch (Exception ex) { } return guideItems; }
public static List<GuideItem> GetDataFromBinhDinhTVUrl(ChannelToServer channelToServer, DateTime date) { string postdata = "date={0}&xem=Xem+lịch+phát+sóng"; string url = String.Format(channelToServer.Server); List<GuideItem> guideItems = new List<GuideItem>(); try { using (var http = new HttpClient()) { http.DefaultRequestHeaders.Add("X-Requested-With", "XMLHttpRequest"); var stringContent = string.Format(postdata, date.ToString("yyyy-MM-dd")); var httpContent = new StringContent(stringContent, Encoding.UTF8, "application/x-www-form-urlencoded"); var response = http.PostAsync(url, httpContent).Result; if (response.IsSuccessStatusCode) { var bytes = response.Content.ReadAsByteArrayAsync().Result; String source = Encoding.GetEncoding("utf-8").GetString(bytes, 0, bytes.Length - 1); source = System.Text.RegularExpressions.Regex.Unescape(source); HtmlDocument resultat = new HtmlDocument(); resultat.LoadHtml(source); var schedules = resultat.DocumentNode.SelectNodes("//div[@id='printReady']"); if (schedules != null && schedules.Count > 0) { var items = schedules.FirstOrDefault().SelectNodes("table//tr/td//p"); for (int i = 0; i < items.Count; i++ ) { var stritem = items[i].InnerText.Trim(); if (!string.IsNullOrEmpty(stritem) && stritem.Length > 10 && stritem[2] == 'h') { string startOn = "", programName = ""; stritem = WebUtility.HtmlDecode(stritem); startOn = stritem.Substring(0, 5).Replace('h',':').Trim(); programName = stritem.Substring(6).Trim(); if (i + 1 < items.Count) { var strong = items[i + 1].SelectNodes("strong"); if( strong != null && strong.Count > 0) { programName += ": " + WebUtility.HtmlDecode(strong.FirstOrDefault().InnerText).Trim(); i = i + 1; } } if (!string.IsNullOrWhiteSpace(startOn)) { var guideItem = new GuideItem() { ChannelKey = channelToServer.ChannelKey, DateOn = MethodHelpers.ConvertDateToCorrectString(date), StartOn = startOn, ProgramName = programName, Note = "" }; guideItems.Add(guideItem); } } } } } } } catch (Exception ex) { } return guideItems; }
public static List<GuideItem> GetDataFromBTVUrl(ChannelToServer channelToServer, DateTime date) { string url = String.Format(channelToServer.Server, channelToServer.Value); List<GuideItem> guideItems = new List<GuideItem>(); try { using (HttpClient http = new HttpClient()) { var response = http.GetByteArrayAsync(url).Result; String source = Encoding.GetEncoding("utf-8").GetString(response, 0, response.Length - 1); // source = System.Text.RegularExpressions.Regex.Unescape(source); source = WebUtility.HtmlDecode(source); HtmlDocument resultat = new HtmlDocument(); resultat.LoadHtml(source); var schedulerMain = resultat.DocumentNode.SelectNodes("//div[@id='schedule-table']"); if (schedulerMain != null && schedulerMain.Count > 0) { var timeItems = schedulerMain.FirstOrDefault().SelectNodes("div[@class='col1']"); var detailItems = schedulerMain.FirstOrDefault().SelectNodes("div[@class='col2']"); var moreDetailItems = schedulerMain.FirstOrDefault().SelectNodes("div[@class='col3']"); if (timeItems != null && detailItems != null && moreDetailItems != null && timeItems.Count == detailItems.Count && moreDetailItems.Count == detailItems.Count) { for (int i = 0; i < timeItems.Count; i++) { string startOn = "", programName = "", more=""; // get start time startOn = timeItems.ElementAt(i).InnerText.Trim(); programName = detailItems.ElementAt(i).InnerText.Trim(); more = moreDetailItems.ElementAt(i).InnerText.Trim(); if (!String.IsNullOrWhiteSpace(more)) { programName +=" - " + more; } if (!string.IsNullOrWhiteSpace(startOn) && startOn.Length < 6) { var guideItem = new GuideItem() { ChannelKey = channelToServer.ChannelKey, DateOn = MethodHelpers.ConvertDateToCorrectString(date), StartOn = startOn, ProgramName = programName, Note = "" }; guideItems.Add(guideItem); } } } } } } catch (Exception ex) { } return guideItems; }
//just get current date +-7 public static List<GuideItem> GetDataFromCanThoTVUrl(ChannelToServer channelToServer, DateTime date) { string url = channelToServer.Server; List<GuideItem> guideItems = new List<GuideItem>(); try { int thu = (int) date.DayOfWeek; if (thu == 0) thu = 7; using (HttpClient http = new HttpClient()) { var response = http.GetByteArrayAsync(url).Result; String source = Encoding.GetEncoding("utf-8").GetString(response, 0, response.Length - 1); // source = System.Text.RegularExpressions.Regex.Unescape(source); source = WebUtility.HtmlDecode(source); HtmlDocument resultat = new HtmlDocument(); resultat.LoadHtml(source); var items = resultat.DocumentNode.SelectNodes("//table[@class='table_LPS2']//tr[@class='hide"+thu+"']"); if (items != null) { foreach (var item in items) { string startOn = "", programName = ""; // get start time var tdTags = item.SelectNodes("td"); if (tdTags != null && tdTags.Count > 1) { startOn = tdTags.ElementAt(0).InnerText.Trim(); programName = MethodHelpers.ToTitleCase(tdTags.ElementAt(1).InnerText.Trim()); } if (!string.IsNullOrWhiteSpace(startOn) && startOn.Length < 6) { var guideItem = new GuideItem() { ChannelKey = channelToServer.ChannelKey, DateOn = MethodHelpers.ConvertDateToCorrectString(date), StartOn = startOn, ProgramName = programName, Note = "" }; guideItems.Add(guideItem); } } } } } catch (Exception ex) { } return guideItems; }
public static List<GuideItem> GetDataFromVOVUrl(ChannelToServer channelToServer, DateTime date) { string url = String.Format(channelToServer.Server + "day={0}", date.ToString("dd/MM/yyyy")); List<GuideItem> guideItems = new List<GuideItem>(); try { HttpClient http = new HttpClient(); var response = http.GetByteArrayAsync(url).Result; String source = Encoding.GetEncoding("utf-8").GetString(response, 0, response.Length - 1); source = WebUtility.HtmlDecode(source); HtmlDocument resultat = new HtmlDocument(); resultat.LoadHtml(source); var chanelDetails = resultat.DocumentNode.SelectNodes("//div[@class='ScheduleDetails']"); if (chanelDetails != null && chanelDetails.Count > 0) { var chanelDetail = chanelDetails.FirstOrDefault(); if (chanelDetail != null) { var items = chanelDetail.SelectNodes("div//tr"); if (items != null) { foreach (var item in items) { string startOn = "", programName = ""; // get start time var tdTags = item.SelectNodes("td"); if (tdTags != null && tdTags.Count > 0) { var time = tdTags.ElementAt(0).InnerText; int length = time.IndexOf("-"); startOn = time.Substring(0, length).Trim(); startOn = startOn.Replace("H", ":"); } if (tdTags != null && tdTags.Count > 1) { programName = MethodHelpers.ToTitleCase(tdTags.ElementAt(1).InnerText.Trim()); } if (tdTags != null && tdTags.Count > 2) { var more = tdTags.ElementAt(2).InnerText.Trim(); if(!string.IsNullOrWhiteSpace(more)){ programName = programName + ": " + more; } } if (!string.IsNullOrWhiteSpace(startOn)) { var guideItem = new GuideItem() { ChannelKey = channelToServer.ChannelKey, DateOn = MethodHelpers.ConvertDateToCorrectString(date), StartOn = startOn, ProgramName = programName, Note = "" }; guideItems.Add(guideItem); } } } } } } catch (Exception ex) { } return guideItems; }
public static List<GuideItem> GetDataFromFBNCUrl(ChannelToServer channelToServer, DateTime date) { string url = String.Format(channelToServer.Server, date.ToString("ddd+MMM+dd+yyyy")); List<GuideItem> guideItems = new List<GuideItem>(); try { using (HttpClient http = new HttpClient()) { var response = http.GetByteArrayAsync(url).Result; String source = Encoding.GetEncoding("utf-8").GetString(response, 0, response.Length - 1); source = WebUtility.HtmlDecode(source); HtmlDocument resultat = new HtmlDocument(); resultat.LoadHtml(source); var schedulerMain = resultat.DocumentNode.SelectNodes("//div[@class='schedule-list']"); if (schedulerMain != null && schedulerMain.Count > 0) { var items = schedulerMain.FirstOrDefault().SelectNodes("div"); if (items != null && items.Count > 0) { foreach (var item in items) { string startOn = "", programName = ""; // get start time var tdTags = item.SelectNodes("div[@class='time']"); if (tdTags != null && tdTags.Count > 0) { startOn = tdTags.ElementAt(0).InnerText.Trim(); } tdTags = item.SelectNodes("div[@class='broadcast-title']"); if (tdTags != null && tdTags.Count > 0) { var deatail = tdTags.FirstOrDefault(); var h2 = deatail.SelectNodes("h2"); if (h2 != null && h2.Count > 0) { programName = h2.FirstOrDefault().InnerText.Trim(); } var h3 = deatail.SelectNodes("h3"); if (h3 != null && h3.Count > 0) { var more = h3.FirstOrDefault().InnerText.Trim(); if (!string.IsNullOrWhiteSpace(more)) { if (!string.IsNullOrWhiteSpace(programName)) { programName += ": " + more; } else { programName = more; } } } } if (!string.IsNullOrWhiteSpace(startOn)) { var guideItem = new GuideItem() { ChannelKey = channelToServer.ChannelKey, DateOn = MethodHelpers.ConvertDateToCorrectString(date), StartOn = startOn, ProgramName = programName, Note = "" }; guideItems.Add(guideItem); } } } } } } catch (Exception ex) { } return guideItems; }
public static List<GuideItem> GetDataFromVTC16Url(ChannelToServer channelToServer, DateTime date) { string url = String.Format(channelToServer.Server, channelToServer.Value, date.ToString("dd/MM/yyyy")); List<GuideItem> guideItems = new List<GuideItem>(); try { using (HttpClient http = new HttpClient()) { var response = http.GetByteArrayAsync(url).Result; String source = Encoding.GetEncoding("utf-8").GetString(response, 0, response.Length - 1); // source = System.Text.RegularExpressions.Regex.Unescape(source); source = WebUtility.HtmlDecode(source); HtmlDocument resultat = new HtmlDocument(); resultat.LoadHtml(source); var items = resultat.DocumentNode.SelectNodes("//div[@class='item row']"); if (items != null && items.Count > 0) { foreach (var item in items) { string startOn = "", programName = ""; // get start time var tdTags = item.SelectNodes("div"); if (tdTags != null && tdTags.Count > 1) { startOn = tdTags.ElementAt(0).InnerText.Trim(); var divs = tdTags.ElementAt(1).SelectNodes("div"); if (divs != null && divs.Count > 0) { programName = divs.ElementAt(0).InnerText.Trim(); } if (divs != null && divs.Count > 1) { var more = divs.ElementAt(1).InnerText.Trim(); if (!string.IsNullOrWhiteSpace(more) && !more.Equals(programName, StringComparison.OrdinalIgnoreCase)) { programName = programName + ": " + more; } } programName = MethodHelpers.ToTitleCase(programName); } if (!string.IsNullOrWhiteSpace(startOn) && startOn.Length < 6) { var guideItem = new GuideItem() { ChannelKey = channelToServer.ChannelKey, DateOn = MethodHelpers.ConvertDateToCorrectString(date), StartOn = startOn, ProgramName = programName, Note = "" }; guideItems.Add(guideItem); } } } } } catch (Exception ex) { } return guideItems; }
// just current date public static List<GuideItem> GetDataFromHaiPhongTVUrl(ChannelToServer channelToServer, DateTime date) { string url = channelToServer.Server; List<GuideItem> guideItems = new List<GuideItem>(); try { using (HttpClient http = new HttpClient()) { var response = http.GetAsync(url).Result; if (response.IsSuccessStatusCode) { var bytes = response.Content.ReadAsByteArrayAsync().Result; String source = Encoding.GetEncoding("utf-8").GetString(bytes, 0, bytes.Length - 1); source = System.Text.RegularExpressions.Regex.Unescape(source); source = WebUtility.HtmlDecode(source); HtmlDocument resultat = new HtmlDocument(); resultat.LoadHtml(source); var items = resultat.DocumentNode.SelectNodes("//table[@class='tblLichPhatSong']//tr"); if (items != null) { foreach (var item in items) { string startOn = "", programName = ""; // get start time var tdTags = item.SelectNodes("td"); if (tdTags != null && tdTags.Count > 1) { startOn = tdTags.ElementAt(0).InnerText.Replace("h",":").Trim(); programName = tdTags.ElementAt(1).InnerText.Trim(); } if (!string.IsNullOrWhiteSpace(startOn)) { var guideItem = new GuideItem() { ChannelKey = channelToServer.ChannelKey, DateOn = MethodHelpers.ConvertDateToCorrectString(date), StartOn = startOn, ProgramName = programName, Note = "" }; guideItems.Add(guideItem); } } } } } } catch (Exception ex) { } return guideItems; }
public static List<GuideItem> GetDataFromYOUTVUrl(ChannelToServer channelToServer, DateTime date) { string url = String.Format(channelToServer.Server, date.ToString("dd-MM-yyyy")); List<GuideItem> guideItems = new List<GuideItem>(); try { using (HttpClient http = new HttpClient()) { var response = http.GetByteArrayAsync(url).Result; String source = Encoding.GetEncoding("utf-8").GetString(response, 0, response.Length - 1); //source = System.Text.RegularExpressions.Regex.Unescape(source); int start = source.IndexOf("<!--BATDAULICH-->")+17, end = source.IndexOf("<!--KETTHUCLICH-->"); source = source.Substring(start, end - start); source = WebUtility.HtmlDecode(source); HtmlDocument resultat = new HtmlDocument(); resultat.LoadHtml(source); var items = resultat.DocumentNode.SelectNodes("div"); if (items != null) { foreach (var item in items) { string startOn = "", programName = ""; // get start time var tdTags = item.SelectNodes("div"); if (tdTags != null && tdTags.Count > 3) { startOn = tdTags.ElementAt(1).InnerText.Trim(); programName = MethodHelpers.ToTitleCase(tdTags.ElementAt(2).InnerText.Trim()); } if (!string.IsNullOrWhiteSpace(startOn)) { var guideItem = new GuideItem() { ChannelKey = channelToServer.ChannelKey, DateOn = MethodHelpers.ConvertDateToCorrectString(date), StartOn = startOn, ProgramName = programName, Note = "" }; guideItems.Add(guideItem); } } } } } catch (Exception ex) { } return guideItems; }
public static List<GuideItem> GetDataTVNetUrl(ChannelToServer channelToServer, DateTime date) { string url = String.Format(channelToServer.Server, channelToServer.Value, date.ToString("dd/MM/yyyy")); List<GuideItem> guideItems = new List<GuideItem>(); try { HttpClient http = new HttpClient(); var response = http.GetByteArrayAsync(url).Result; String source = Encoding.GetEncoding("utf-8").GetString(response, 0, response.Length - 1); source = WebUtility.HtmlDecode(source); HtmlDocument resultat = new HtmlDocument(); resultat.LoadHtml(source); var items = resultat.DocumentNode.SelectNodes("//tr"); if (items != null) { foreach (var item in items) { string startOn = "", programName = ""; // get start time var tdTags = item.SelectNodes("td"); if (tdTags != null && tdTags.Count > 0) { startOn = tdTags.ElementAt(0).InnerText.Trim(); } if (tdTags != null && tdTags.Count > 1) { programName = MethodHelpers.ToTitleCase(tdTags.ElementAt(1).InnerText.Trim()); } var guideItem = new GuideItem() { ChannelKey = channelToServer.ChannelKey, DateOn = MethodHelpers.ConvertDateToCorrectString(date), StartOn = startOn, ProgramName = programName, Note = "" }; guideItems.Add(guideItem); } } } catch (Exception ex) { } return guideItems; }
public static List<GuideItem> GetFromQPVNUrl(ChannelToServer channelToServer, DateTime date) { string url = String.Format(channelToServer.Server,date.ToString("dd/MM/yyyy")); List<GuideItem> guideItems = new List<GuideItem>(); try { HttpClient http = new HttpClient(); var response = http.GetByteArrayAsync(url).Result; String source = Encoding.GetEncoding("utf-8").GetString(response, 0, response.Length - 1); source = WebUtility.HtmlDecode(source); HtmlDocument resultat = new HtmlDocument(); resultat.LoadHtml(source.Replace("<br/>",": ")); var items = resultat.DocumentNode.SelectNodes("table//tr"); if (items != null && items.Count > 0) { foreach (var item in items) { string startOn = "", programName = ""; // get start time var tdTags = item.SelectNodes("td"); if (tdTags != null && tdTags.Count > 0) { startOn = tdTags.ElementAt(0).InnerText.Trim(); } if (tdTags != null && tdTags.Count > 1) { var str = tdTags.ElementAt(1).InnerText; int length = str.IndexOf(": "); var title = str.Substring(0, length).Trim(); var detail = str.Substring(length); programName = MethodHelpers.ToTitleCase(title) + (detail.Length > 3 ? detail : ""); } if (!string.IsNullOrWhiteSpace(startOn)) { var guideItem = new GuideItem() { ChannelKey = channelToServer.ChannelKey, DateOn = MethodHelpers.ConvertDateToCorrectString(date), StartOn = startOn, ProgramName = programName, Note = "" }; guideItems.Add(guideItem); } } } } catch (Exception ex) { } return guideItems; }
public static List<GuideItem> GetDataFromHTV2ChannelTVUrl(ChannelToServer channelToServer, DateTime date) { string url = String.Format(channelToServer.Server, date.ToString("yyyy/MM/dd")); List<GuideItem> guideItems = new List<GuideItem>(); try { HttpClient http = new HttpClient(); var response = http.GetByteArrayAsync(url).Result; String source = Encoding.GetEncoding("utf-8").GetString(response, 0, response.Length - 1); source = WebUtility.HtmlDecode(source); HtmlDocument resultat = new HtmlDocument(); resultat.LoadHtml(source); var schedulerMain = resultat.DocumentNode.SelectNodes("//div[@class='lichchieu_detail']"); if (schedulerMain != null && schedulerMain.Count > 0) { var chanelDetail = schedulerMain.FirstOrDefault(); if (chanelDetail != null) { var items = chanelDetail.SelectNodes("table//tr"); if (items != null) { foreach (var item in items) { string startOn = "", programName = ""; // get start time var thTags = item.SelectNodes("th"); if (thTags != null && thTags.Count > 0) { startOn = thTags.ElementAt(0).InnerText.Trim(); } var tdTags = item.SelectNodes("td"); if (tdTags != null && tdTags.Count > 0) { var pTags = tdTags.FirstOrDefault().SelectNodes("p"); if (pTags != null && pTags.Count > 0) { programName = pTags.ElementAt(0).InnerText.Trim(); } if (pTags != null && pTags.Count > 1) { var more = pTags.ElementAt(1).InnerText.Trim(); if (!string.IsNullOrWhiteSpace(more)) { programName = programName + ": " + more; } } } if (!string.IsNullOrWhiteSpace(startOn)) { var guideItem = new GuideItem() { ChannelKey = channelToServer.ChannelKey, DateOn = MethodHelpers.ConvertDateToCorrectString(date), StartOn = startOn, ProgramName = programName, Note = "" }; guideItems.Add(guideItem); } } } } } } catch (Exception ex) { } return guideItems; }
private static List<GuideItem> GetDataFromMOBITVUrl(string url, ChannelToServer channelToServer, DateTime date) { string postdata = "RadScriptManager1_TSM=%3B%3BSystem.Web.Extensions%2C+Version%3D4.0.0.0%2C+Culture%3Dneutral%2C+PublicKeyToken%3D31bf3856ad364e35%3Aen-US%3A8f393b2b-3315-402f-b504-cd6d2db001f6%3Aea597d4b%3Ab25378d2&__EVENTTARGET=&__EVENTARGUMENT=&__VIEWSTATE=%2FwEPDwUKMTI0Mjk0NjMyM2QYAQUeX19Db250cm9sc1JlcXVpcmVQb3N0QmFja0tleV9fFgEFEWN0bDA2JGN0bDAxJElzSG90&km=T%E1%BB%AB+kh%C3%B3a+t%C3%ACm+ki%E1%BA%BFm...&ctl06_ctl01_ChooseDate={1}&ctl06%24ctl01%24Channel={0}&ctl06%24ctl01%24Programmer=Ch%E1%BB%8Dn+ch%C6%B0%C6%A1ng+tr%C3%ACnh&ctl06%24ctl01%24HourPeriod=Th%E1%BB%9Di+gian&ctl06%24ctl01%24btnBSSubmit=T%C3%ACm+ki%E1%BA%BFm";//22-08-2016 List<GuideItem> guideItems = new List<GuideItem>(); try { using (var http = new HttpClient()) { http.DefaultRequestHeaders.Add("X-Requested-With", "XMLHttpRequest"); var stringContent = string.Format(postdata, channelToServer.Value, date.ToString("dd-MM-yyyy")); var httpContent = new StringContent(stringContent, Encoding.UTF8, "application/x-www-form-urlencoded"); var response = http.PostAsync(url, httpContent).Result; if (response.IsSuccessStatusCode) { var bytes = response.Content.ReadAsByteArrayAsync().Result; String source = Encoding.GetEncoding("utf-8").GetString(bytes, 0, bytes.Length - 1); source = System.Text.RegularExpressions.Regex.Unescape(source); source = WebUtility.HtmlDecode(source.Replace("\"", "")); HtmlDocument resultat = new HtmlDocument(); resultat.LoadHtml(source); var schedules = resultat.DocumentNode.SelectNodes("//table[@class='list-table']"); if (schedules != null && schedules.Count > 0) { var items = schedules.FirstOrDefault().SelectNodes("tr"); foreach (var item in items) { string startOn = "", programName = ""; // get start time var tdTags = item.SelectNodes("td"); if (tdTags != null && tdTags.Count > 3) { startOn = tdTags.ElementAt(0).InnerText.Trim(); programName = tdTags.ElementAt(2).InnerText.Trim(); var more = tdTags.ElementAt(3).InnerText.Trim(); if (!string.IsNullOrWhiteSpace(more)) { programName += ": " + more; } } if (!string.IsNullOrWhiteSpace(startOn)) { var guideItem = new GuideItem() { ChannelKey = channelToServer.ChannelKey, DateOn = MethodHelpers.ConvertDateToCorrectString(date), StartOn = startOn, ProgramName = programName, Note = "" }; guideItems.Add(guideItem); } } } } } } catch (Exception ex) { } return guideItems; }
public static ChannelToServer GetChannelToServer2(string channelKey, ChannelToServer channelToServer) { if (channelToServer != null && !string.IsNullOrEmpty(channelToServer.Server2)) { return new ChannelToServer() { Server = channelToServer.Server2, ChannelKey = channelKey, Value = channelToServer.Value2, ExtraValue = channelToServer.ExtraValue2 }; ; } return null; }
public static List<GuideItem> GetDataFromBRTUrl(ChannelToServer channelToServer, DateTime date) { string url = channelToServer.Server; List<GuideItem> guideItems = new List<GuideItem>(); try { using (HttpClient http = new HttpClient()) { var response = http.GetByteArrayAsync(url).Result; String source = Encoding.GetEncoding("utf-8").GetString(response, 0, response.Length - 1); // source = System.Text.RegularExpressions.Regex.Unescape(source); source = WebUtility.HtmlDecode(source); HtmlDocument resultat = new HtmlDocument(); resultat.LoadHtml(source); var schedulerMain = resultat.DocumentNode.SelectNodes("//table[@class='MsoNormalTable']"); if (schedulerMain != null && schedulerMain.Count > 0) { var items = schedulerMain.FirstOrDefault().SelectNodes("tbody//tr"); if (items != null) { foreach (var item in items) { string startOn = "", programName = ""; // get start time var tdTags = item.SelectNodes("td"); if (tdTags != null && tdTags.Count > 1) { startOn = tdTags.ElementAt(0).InnerText.Replace("g",":").Trim(); programName = MethodHelpers.ToTitleCase(System.Text.RegularExpressions.Regex.Replace(tdTags.ElementAt(1).InnerText.Trim(), @"\s+", " ")); } if (!string.IsNullOrWhiteSpace(startOn) && startOn.Length < 6) { var guideItem = new GuideItem() { ChannelKey = channelToServer.ChannelKey, DateOn = MethodHelpers.ConvertDateToCorrectString(date), StartOn = startOn, ProgramName = programName, Note = "" }; guideItems.Add(guideItem); } } } } } } catch (Exception ex) { } return guideItems; }
private static List<GuideItem> GetScheduleFromServer(String channelKey, DateTime date, ChannelToServer channelToServer) { DateTime VN_Now; List<GuideItem> guideItems = new List<GuideItem>(); switch (channelToServer.Server) { case DataStatic.FROM_MYTIVI_PAGE: guideItems = HtmlHelper.GetDataFromMyTVUrl(channelToServer, date); break; case DataStatic.FROM_VOV_PAGE: guideItems = HtmlHelper.GetDataFromVOVUrl(channelToServer, date); break; case DataStatic.FROM_VTC14_PAGE: VN_Now = DateTime.UtcNow.AddHours(7); if (VN_Now.Day == date.Day && VN_Now.Month == date.Month && VN_Now.Year == date.Year) { guideItems = HtmlHelper.GetVTC14Url(channelToServer, date); } break; case DataStatic.FROM_TRUYENHINHSO_PAGE: guideItems = HtmlHelper.GetDataFromTruyenHinhSoUrl(channelToServer, date); break; case DataStatic.FROM_TVNET_PAGE: guideItems = HtmlHelper.GetDataTVNetUrl(channelToServer, date); break; case DataStatic.FROM_PHUT91_PAGE: guideItems = HtmlHelper.GetDataFromPhut90Url(channelToServer, date); break; case DataStatic.FROM_HTV3TV_PAGE: guideItems = HtmlHelper.GetDataFromHTV3TVUrl(channelToServer, date); break; case DataStatic.FROM_HTV2CHANNEL_PAGE: guideItems = HtmlHelper.GetDataFromHTV2ChannelTVUrl(channelToServer, date); break; case DataStatic.FROM_QPVN_PAGE: guideItems = HtmlHelper.GetFromQPVNUrl(channelToServer, date); break; case DataStatic.FROM_HTVONLINE_PAGE: guideItems = HtmlHelper.GetDataFromHTVONLINEUrl(channelToServer, date); break; case DataStatic.FROM_FBNC_PAGE: guideItems = HtmlHelper.GetDataFromFBNCUrl(channelToServer, date); break; case DataStatic.FROM_VTVCab_PAGE: guideItems = HtmlHelper.GetDataFromVTVCabUrl(channelToServer, date); break; case DataStatic.FROM_TRAVINH_PAGE: guideItems = HtmlHelper.GetDataFromTRAVINHTVUrl(channelToServer, date); break; case DataStatic.FROM_BPTV_PAGE: guideItems = HtmlHelper.GetDataFromBPTVUrl(channelToServer, date); break; case DataStatic.FROM_HITV_PAGE: VN_Now = DateTime.UtcNow.AddHours(7); if (VN_Now.Day == date.Day && VN_Now.Month == date.Month && VN_Now.Year == date.Year) { guideItems = HtmlHelper.GetDataFromHITVUrl(channelToServer, date); } break; case DataStatic.FROM_YOUTV_PAGE: guideItems = HtmlHelper.GetDataFromYOUTVUrl(channelToServer, date); break; ; case DataStatic.FROM_CAMAU_PAGE: guideItems = HtmlHelper.GetDataFromCAMAUVUrl(channelToServer, date); break; case DataStatic.FROM_BENTRE_PAGE: guideItems = HtmlHelper.GetDataFromBENTREVUrl(channelToServer, date); break; case DataStatic.FROM_QUANGBINH_PAGE: guideItems = HtmlHelper.GetDataFromQUANGBINHUrl(channelToServer, date); break; case DataStatic.FROM_TV24_PAGE: guideItems = HtmlHelper.GetDataFromTV24Url(channelToServer, date); break; case DataStatic.FROM_LETSVIET_PAGE: guideItems = HtmlHelper.GetDataFromLetsVietUrl(channelToServer, date); break; case DataStatic.FROM_KGTV_PAGE: guideItems = HtmlHelper.GetDataFromKGTVUrl(channelToServer, date); break; case DataStatic.FROM_BRT_PAGE: VN_Now = DateTime.UtcNow.AddHours(7); if (VN_Now.Day == date.Day && VN_Now.Month == date.Month && VN_Now.Year == date.Year) { guideItems = HtmlHelper.GetDataFromBRTUrl(channelToServer, date); } break; case DataStatic.FROM_BTV_PAGE: VN_Now = DateTime.UtcNow.AddHours(7); if (VN_Now.Day == date.Day && VN_Now.Month == date.Month && VN_Now.Year == date.Year) { guideItems = HtmlHelper.GetDataFromBTVUrl(channelToServer, date); } break; case DataStatic.FROM_LA34_PAGE: guideItems = HtmlHelper.GetDataFromLA34Url(channelToServer, date); break; case DataStatic.FROM_CANTHOTV_PAGE: VN_Now = DateTime.UtcNow.AddHours(7); int offset = (int)VN_Now.DayOfWeek - (int)date.DayOfWeek; if (offset > 6 || offset < -6) break; guideItems = HtmlHelper.GetDataFromCanThoTVUrl(channelToServer, date); break; case DataStatic.FROM_TRT_PAGE: VN_Now = DateTime.UtcNow.AddHours(7); if (VN_Now.Day == date.Day && VN_Now.Month == date.Month && VN_Now.Year == date.Year) { guideItems = HtmlHelper.GetDataFromTRTUrl(channelToServer, date); } break; case DataStatic.FROM_PHUTHOTV_PAGE: guideItems = HtmlHelper.GetDataFromPhuThoTVUrl(channelToServer, date); break; case DataStatic.FROM_THDT_PAGE: VN_Now = DateTime.UtcNow.AddHours(7); if (VN_Now.Day == date.Day && VN_Now.Month == date.Month && VN_Now.Year == date.Year) { guideItems = HtmlHelper.GetDataFromTHDTUrl(channelToServer, date); } break; case DataStatic.FROM_VTC16_PAGE: guideItems = HtmlHelper.GetDataFromVTC16Url(channelToServer, date); break; case DataStatic.FROM_TRUELIFE_PAGE: guideItems = HtmlHelper.GetDataFromTrueLifeTVUrl(channelToServer, date); break; case DataStatic.FROM_ATV_PAGE: VN_Now = DateTime.UtcNow.AddHours(7); if (VN_Now.Day == date.Day && VN_Now.Month == date.Month && VN_Now.Year == date.Year) { guideItems = HtmlHelper.GetDataFromATVUrl(channelToServer, date); } break; case DataStatic.FROM_NAMDINHTV_PAGE: guideItems = HtmlHelper.GetDataFromNamDinhTVUrl(channelToServer, date); break; case DataStatic.FROM_HAUGIANGTV_PAGE: guideItems = HtmlHelper.GetDataFromHauGiangTVUrl(channelToServer, date); break; case DataStatic.FROM_HAIPHONG_PAGE: VN_Now = DateTime.UtcNow.AddHours(7); if (VN_Now.Day == date.Day && VN_Now.Month == date.Month && VN_Now.Year == date.Year) { guideItems = HtmlHelper.GetDataFromHaiPhongTVUrl(channelToServer, date); } break; case DataStatic.FROM_SONLA_PAGE: guideItems = HtmlHelper.GetDataFromSonLaTVUrl(channelToServer, date); break; case DataStatic.FROM_THVL_PAGE: guideItems = HtmlHelper.GetDataFromTHVLUrl(channelToServer, date); break; case DataStatic.FROM_SCTV_PAGE: guideItems = HtmlHelper.GetDataFromSCTVUrl(channelToServer, date); break; case DataStatic.FROM_THST_PAGE: guideItems = HtmlHelper.GetDataFromTHSTUrl(channelToServer, date); break; case DataStatic.FROM_BINHDINHTV_PAGE: guideItems = HtmlHelper.GetDataFromBinhDinhTVUrl(channelToServer, date); break; case DataStatic.FROM_GIALAITV_PAGE: guideItems = HtmlHelper.GetDataFromGIALAITVUrl(channelToServer, date); break; case DataStatic.FROM_DRT_PAGE: guideItems = HtmlHelper.GetDataFromDRTUrl(channelToServer, date); break; case DataStatic.FROM_MOBITV_PAGE: guideItems = HtmlHelper.GetDataFromMOBITVUrl(channelToServer, date); break; case DataStatic.FROM_KPLUS_PAGE: VN_Now = DateTime.UtcNow.AddHours(7); if (VN_Now.AddDays(7) > date && VN_Now.AddDays(-7) < date) { guideItems = HtmlHelper.GetDataFromKPlusUrl(channelToServer, date); } break; case DataStatic.FROM_VIETBAO_PAGE: default: var channel = SQLiteProcess.GetChannel(channelKey); if (channel != null && channel.ChannelId > 0) { if (!String.IsNullOrWhiteSpace(channel.LinkVietBao)) { guideItems = HtmlHelper.GetDataFromVietBaoUrl(channel, date); } } break; } return guideItems; }
public static List<GuideItem> GetDataFromPhuThoTVUrl(ChannelToServer channelToServer, DateTime date) { string url = String.Format(channelToServer.Server); List<GuideItem> guideItems = new List<GuideItem>(); try { using (HttpClient http = new HttpClient()) { //args[date]:"31/06/2016" var keys = new List<KeyValuePair<string, string>>() { new KeyValuePair<string, string>("method", "GetSchedule"), new KeyValuePair<string, string>("args[date]", date.ToString("dd/MM/yyyy")) }; var content = new System.Net.Http.FormUrlEncodedContent(keys); content.Headers.Clear(); content.Headers.Add("Content-Type", "application/x-www-form-urlencoded"); content.Headers.Add("X-Requested-With", "XMLHttpRequest"); var response = http.PostAsync(url, content).Result; // http.BaseAddress = new Uri(url); //var response = http.PostAsync(url, content).Result; if (response.IsSuccessStatusCode) { var bytes = response.Content.ReadAsByteArrayAsync().Result; String source = Encoding.GetEncoding("utf-8").GetString(bytes, 0, bytes.Length - 1); source = System.Text.RegularExpressions.Regex.Unescape(source); int start = source.IndexOf("\"<ul>") + 1; int end = source.LastIndexOf("</ul>\"") + 5; source = source.Substring(start, end - start); source = WebUtility.HtmlDecode(source); HtmlDocument resultat = new HtmlDocument(); resultat.LoadHtml(source); var items = resultat.DocumentNode.SelectNodes("//li"); if (items != null) { foreach (var item in items) { string startOn = "", programName = ""; // get start time var pTags = item.SelectNodes("p"); if (pTags != null && pTags.Count > 0) { startOn = pTags.ElementAt(0).InnerText.Trim(); } var details = item.SelectNodes("a"); if (details != null && details.Count > 0) { programName = details.ElementAt(0).InnerText.Trim(); } if (pTags != null && pTags.Count > 1) { var more = pTags.ElementAt(1).InnerText.Trim(); if(!String.IsNullOrWhiteSpace(more)) { programName = programName + ": " + more; } } if (!string.IsNullOrWhiteSpace(startOn)) { var guideItem = new GuideItem() { ChannelKey = channelToServer.ChannelKey, DateOn = MethodHelpers.ConvertDateToCorrectString(date), StartOn = startOn, ProgramName = programName, Note = "" }; guideItems.Add(guideItem); } } } } } } catch (Exception ex) { } return guideItems; }