Kanna icon indicating copy to clipboard operation
Kanna copied to clipboard

请问能支持XPath 函数吗?

Open kuangtao22 opened this issue 2 years ago • 0 comments

作者您好: 在解析网页的时候,我使用text()函数无法解析,不知道是什么原因? 麻烦作者能帮我解决这个难题~~

这样写,可以显示数据 htmlDocument.xpath("//div[@id='content']").first?.text

而这样写,加了一个text(),无法解析数据出来: htmlDocument.xpath("//div[@id='content']/text()").first?.text

kuangtao22 avatar Jul 26 '21 11:07 kuangtao22