我想获得我建议的链接中显示的这个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