Skip to content
New issue

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

请问能支持XPath 函数吗? #252

Open
kuangtao22 opened this issue Jul 26, 2021 · 0 comments
Open

请问能支持XPath 函数吗? #252

kuangtao22 opened this issue Jul 26, 2021 · 0 comments

Comments

@kuangtao22
Copy link

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

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant