public override List<PageIndex> GetImageIndex(HtmlDocument html, string baseUrl) { var pages = new List<PageIndex>(); var script = (string)html.GetType().GetField("Text", System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance).GetValue(html); var url = AssemblyHelper.EvalJs2(script, "d[0]"); var n = GetIndexedName(url); pages.Add(new PageIndex() { name = n, url = url }); return pages; }
public override List<PageIndex> GetImageIndex(HtmlDocument html, string baseUrl) { var pages = new List<PageIndex>(); var script = (string)html.GetType().GetField("Text", System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance).GetValue(html); var a = AssemblyHelper.EvalJs2(script, "var a={};a.imgs=msg;a.server=img_s;a"); var e = a.server; var imgs = ((string)a.imgs).Split('|'); for (var i = 0; i < imgs.Length; ++i) { var u = String.Format("{0}{1}", img_svrab[e], imgs[i]); var n = GetIndexedName(i + 1, u); pages.Add(new PageIndex() { name = n, url = u }); } return pages; }