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解析器 不支持 last() 语法 #357

Closed
leondss opened this issue Aug 1, 2016 · 5 comments
Closed

xpath解析器 不支持 last() 语法 #357

leondss opened this issue Aug 1, 2016 · 5 comments

Comments

@leondss
Copy link

leondss commented Aug 1, 2016

page.getHtml().xpath("//*[@id="divcontent"]/div/div/div[1]/div[1]/div[1]/div[3]/div/span[last()-1]/text()")

@caychan
Copy link

caychan commented Aug 3, 2016

什么意思?现在支持了?

@peony07
Copy link

peony07 commented Sep 22, 2016

同问,啥时候能支持啊。

@code4craft
Copy link
Owner

记录到xsoup里了。
code4craft/xsoup#21

@kristiWan
Copy link

String() 函数也不可以用?

@itliuxing
Copy link

同问,还有没有在更新:last() 等待支持

@sutra sutra added this to the WebMagic-0.7.4 milestone Oct 26, 2020
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

7 participants