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地址没有用 #19

Closed
Code-Cats opened this issue Aug 22, 2020 · 3 comments
Labels
question Further information is requested

Comments

@Code-Cats
Copy link

部分网站解析正文有问题(chrome浏览器可以正常阅读),在chrome浏览器中复制正文头尾Xpath位置似乎没有作用,如图,但是在软件及GTIHUP中没有找到解析配置规则的说明,因此请教一下如何设置解析配置
image

@Code-Cats
Copy link
Author

切换为匹配规则1后可以解析出正文,该网站的问题解决,但是我还是想咨询一下如果遇到无法解析的网站,解析规则应该如何配置(从书源目录解析设置里来看是Xpath定位,但Xpath是以整个标签为单位,正文一般在一个

元素中,那么规则里的章节头 章节尾,正文头 正文尾分别对应什么?是正文里的第一句话对应的标签和最后一句话对应的标签吗)

@unclezs
Copy link
Member

unclezs commented Aug 23, 2020

关于范围匹配可以看https://docs.qq.com/doc/DRHhFRElUUml5dWNP

因为三个规则肯定可以解析出来正文的,一个不行就换一个就可以了,范围头和范围尾是为了更加精确的进行匹配,不是自定义规则

@unclezs unclezs added the question Further information is requested label Aug 23, 2020
@Code-Cats
Copy link
Author

好的 感谢

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

No branches or pull requests

2 participants