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

代码:

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

 

实战代码:

 

posted @ 2020-01-31 23:18  博二爷  阅读(499)  评论(0编辑  收藏  举报