private void toolStripButton7_Click(object sender, EventArgs e) { HttpCodeLib.XJHTTP xj = new HttpCodeLib.XJHTTP(); var html1 = xj.GetHtml("http://nufm3.dfcfw.com/EM_Finance2014NumericApplication/JS.aspx?type=CT&cmd=SZ&sty=UDFN&st=z&sr=&p=&ps=&token=44c9d251add88e27b65ed86506f6e5da").Html; var str = xj.GetStringMid(html1,"\"","\"").Split(new char[]{','}); MessageBox.Show(str[0]); }
private string[] getStkInfo(string _stkCode) { string[] stkinfo; HttpCodeLib.XJHTTP xj = new HttpCodeLib.XJHTTP(); string url = "http://qt.gtimg.cn/q=" + codeTrans(_stkCode); string html = xj.GetHtml(url).Html; stkinfo = html.Split(new char[] { '~' }); return(stkinfo); }
private static string GetHtmlSource(string url) { string result = ""; try { HttpCodeLib.XJHTTP xj = new HttpCodeLib.XJHTTP(); result = xj.GetHtml(url).Html; } catch { result = ""; } return(result); }