-
-
Notifications
You must be signed in to change notification settings - Fork 223
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
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
作者您好:
在解析网页的时候,我使用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: