Dim web As new System.Windows.Forms.WebBrowser web.ScriptErrorsSuppressed = True web.Navigate("http://vip.stock.finance.sina.com.cn/q/go.php/vDYData/kind/znzd/index.phtml") Do Until web.ReadyState = 4 Application.DoEvents Loop Dim trs = web.Document.GetElementsByTagName("tr") For i As Integer = 1 To trs.count - 1 Dim str As String = "" Dim tds = trs(i).GetElementsByTagName("td") For j As Integer = 0 To tds.count - 1 str &= tds(j).InnerText & " " Next output.show(str) Next
|