网页链接为:http://www.hkex.com.hk/eng/market/sec_tradinfo/stockcode/eisdeqty_pf.htm
我想使用Jsoup提取所有
我正在使用的代码是:
<tr class="tr_normal">
元素。我正在使用的代码是:
Document doc = Jsoup.connect(url).get();
Elements es = doc.getElementsByClass("tr_normal");
System.out.println(es.size());
但是大小(1350)比实际大小(1452)要小。我将此页面复制到我的计算机上并删除了一些<tr>
元素。然后我运行相同的代码,它是正确的。看起来有太多的元素,所以jsoup无法读取所有元素?
那么发生了什么?谢谢!