We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
作者您好: 在解析网页的时候,我使用text()函数无法解析,不知道是什么原因? 麻烦作者能帮我解决这个难题~~
这样写,可以显示数据 htmlDocument.xpath("//div[@id='content']").first?.text
htmlDocument.xpath("//div[@id='content']").first?.text
而这样写,加了一个text(),无法解析数据出来: htmlDocument.xpath("//div[@id='content']/text()").first?.text
htmlDocument.xpath("//div[@id='content']/text()").first?.text
The text was updated successfully, but these errors were encountered:
No branches or pull requests
作者您好:
在解析网页的时候,我使用text()函数无法解析,不知道是什么原因?
麻烦作者能帮我解决这个难题~~
这样写,可以显示数据
htmlDocument.xpath("//div[@id='content']").first?.text
而这样写,加了一个text(),无法解析数据出来:
htmlDocument.xpath("//div[@id='content']/text()").first?.text
The text was updated successfully, but these errors were encountered: