我想獲得我建議的鏈接中顯示的這個div的值。 有沒有什麼靈魂能向我展示解決方案?我不是在這裏要求的代碼,但很難,並希望得到一些幫助。獲取特定div的值vb.net
我想使用WebBrowser控件,但至今沒有。
謝謝。
Dim divs = WebBrowser1.Document.Body.GetElementsByTagName("div")
Dim result
For Each d As HtmlElement In divs
If d.GetAttribute("className") = "block_competition_tables real-content clearfix " Then
result = d.InnerText
End If
MsgBox(result)
Next
形象的例子:
http://www.mediafire.com/convkey/e9de/4ju6fo9cp6ibl84fg.jpg
網站鏈接:
http://it.soccerway.com/national/italy/serie-a/20142015/regular-season/r27139/
不,msgbox內容爲空:\ – IlDrugo 2014-10-21 12:56:48