且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

使用Jsoup提取数据

更新时间:2023-12-03 20:48:58

如果要获取表(而不是表头)的内容,则需要更改表的选择器:

If you want to get the content of table(not head), you need change the selector of table:

for (Element table : doc.select("table.tbldata14"))

代替

 for (Element table : doc.select("table.tablehead"))