static async void GetComment(string sid) { string url = "http://coral.qq.com/article/" + cid + "/comment?otype=xml&commentid=" + sid; string cc = await WebClass.GetResults(url, "http://v.qq.com/txyp/coralComment_yp_1.0.htm"); AnalyComment(cc); }
public static async void LoadViewPageData(string url) { label1 :; char[] d = url.ToCharArray(); int c = FindCharArray(ref d, ref Key_vqq, 0); if (c > 0) { char[] t = new char[d.Length + 2]; for (int i = 0; i < 15; i++) { t[i] = d[i]; } t[15] = '/'; t[16] = 'x'; c = 15; for (int i = 17; i < t.Length; i++) { t[i] = d[c]; c++; } url = new string(t); } string cc = await WebClass.GetResults(url); if (cc.Length < 4096) { main_buff = cc.ToCharArray(); main_buff = DeleteChar(ref main_buff, '\\'); int s = FindCharArray(ref Key_refresh, 0); s = FindCharArray(ref Key_url, s); char[] tt; if (s < 0) { s = FindCharArray(ref Key_href, 0); tt = FindCharArrayA(ref main_buff, '\"', '\"', ref s); } else { s = FindCharArray(ref main_buff, 'h', s); int e = FindCharArray(ref main_buff, '\'', '\"', s); e -= s; tt = CopyCharArry(s, e); } if (FindCharArray(ref tt, ref Key_http, 0) > -1) { url = new string(tt); } else { url = "http:" + new string(tt); } goto label1; } ViewAnalyzeM(cc); }
public static async void LoadComment(string vid) { Com_load = true; Com_over = false; string cc = "http://ncgi.video.qq.com/fcgi-bin/video_comment_id?otype=json&op=3&vid=" + vid; cid = await WebClass.GetResults(cc, "http://v.qq.com/x/cover/k8m3u2xb0nk9eee/t0327opjakl.html"); //Debug.WriteLine(cur_cid); char[] temp = cid.ToCharArray(); int s = FindCharArray(ref temp, ref Key_comment_id, 0); char[] t = FindCharArrayA(ref temp, '\"', '\"', ref s); cid = new string(t); GetComment("0"); }