xpath爬虫匹配 <li><a href='aaaa.html'>AAA</a></li> 路径

时间:2020-02-01 00:54:05   收藏:0   阅读:115

代码:

 1 page.addTargetRequests( 2 page.getHtml().xpath("//div[@class=‘rinfo‘]/a/@href").all()); 

 

实战代码:

技术图片

 

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!