https://www.similarweb.com/website/kcci.com
我想在这个范围内获得价值:
<span class="rankingItem-value js-countable" data-value="31,504">#31,504</span>
我的结果应该是31,504。
我正在尝试运行此代码:
Sub CommandButton1_Click2()
Dim ieApp As Object
Set ieApp = CreateObject("internetexplorer.application")
With ieApp
.Navigate "https://www.similarweb.com/website/" & "kcci.com"
.Visible = False
End With
Do While ieApp.Busy
DoEvents
Loop
Set allRowOfData = ieApp.document.getelementsbyclassname("rankingItem-value js-countable")
Dim myValue As String
myValue = allRowOfData.innerHTML
MsgBox myValue
Set ieApp = Nothing
End Sub
我无法获得价值。 任何人都可以帮我理解我错过了什么吗?