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查找 #3

Closed
Cdners opened this issue Aug 24, 2023 · 3 comments
Closed

能否新增一个同类型xpath查找 #3

Cdners opened this issue Aug 24, 2023 · 3 comments

Comments

@Cdners
Copy link

Cdners commented Aug 24, 2023

http://www.lzbs.com.cn/ttnews/
新闻列表页通过精简xpath确实方便很多
但是比如 第一个和第二个新闻需要手动把下标[1]删除
//ul[@Class='mlistDotBlack mrgt10']/li[1]/a
//ul[@Class='mlistDotBlack mrgt10']/li[2]/a
如果有个功能输出是 //ul[@Class='mlistDotBlack mrgt10']/li/a 就更方便了

@gt1226500986
Copy link

http://www.lzbs.com.cn/ttnews/ 新闻列表页通过精简xpath确实方便很多 但是比如 第一个和第二个新闻需要手动把下标[1]删除 //ul[@Class='mlistDotBlack mrgt10']/li[1]/a //ul[@Class='mlistDotBlack mrgt10']/li[2]/a 如果有个功能输出是 //ul[@Class='mlistDotBlack mrgt10']/li/a 就更方便了

我也向往有这个功能

mic1on added a commit that referenced this issue Oct 27, 2023
@mic1on mic1on closed this as completed Oct 27, 2023
@gt1226500986
Copy link

1700650678551
1700650712890
两个问题,使用解压包直接导入报错,解压后导入显示1.04

@memoryleilei
Copy link

请问作者,你实现这个功能,大概的思路是怎样的?好奇请教

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

4 participants