使用VBA来抓取数据
我试图从下面的代码使用VBA拉热带素食 ($ 5)的价格数据
h2 class="ng-binding" Meat Lovers/h2 h3 class="ng-biding" ng-show="canShowPrice"$9.00/h3 h2 class="ng-binding"Tropical Veggie/h2 h3 class="ng-biding" ng-show="canShowPrice"$5.00/h3
这是我的代码
Dim TropicalVeggie As String TropicalVeggie = IE.Document.getElementsByClassName("ng-binding")(0).innerText
我认为问题的一部分是有“ng绑定”多个类名称。 但我不知道