johntsu
Results
2
issues of
johntsu
xpath轴问题
6
我使用的webmagic版本是0.7.3,用xpath轴选取元素的时候,抛出了异常。 代码如下: List sectionLinkList = page.getHtml().xpath("//*[@id=\"main\"]/div/dl/dt[2]/following-sibling::input").all(); 抛出的异常: org.jsoup.select.Selector$SelectorParseException: Could not parse query 'following-sibling::input': unexpected token at '::input' 这个版本的webmagic中的jsoup是不是不支持xpath轴?