这个错误的原因是 restrict_xpaths 应该指向元素,也就是直接链接或包含链接的容器,而不是它的属性,而我们的代码中用的是 a/@href,修改如下
本文标题:restrict_xpaths容易忽略的错误
本文链接:https://www.haomeiwen.com/subject/kvgllhtx.html
网友评论