知道vba抓网的元素数量

时间:2018-05-07 13:42:59

标签: vba web-scraping classname content-length

大家好我想知道如下的

元素
<div id="datatable">
         <form id="theForm" name="theForm" >......</form>
          <div class="no_data_dd" id="no_data" >....
               <div class= ....>.....
                    <div class= ....> 
                    </div>
               </div>
         </div>
         <div class="score_row score_header">.../div>
         <div class="score_row match_line e_true" >..</div>
         <div class="score_row padded_date ">..</div>
         <div class= ....>.....</div>
</div>

我试过

Set itemEle = objIE.document.getElementById("scoretable")
Length = itemEle.getElementsByTagName("class").Length

length = 0且nont = 5

为什么?

0 个答案:

没有答案