比如我要采集这个id=productDescription标签下的所有子标签的文本内容
String content = page.getHtml().xpath(//*[@id=\"productDescription\"]).smartContent().get();
这样就可以了 获取下来的数据自动帮你换行的 具体的可以打印出来看一下
比如我要采集这个id=productDescription标签下的所有子标签的文本内容
String content = page.getHtml().xpath(//*[@id=\"productDescription\"]).smartContent().get();
这样就可以了 获取下来的数据自动帮你换行的 具体的可以打印出来看一下