[英]pagination/paginate in node.js xray, from current page to the others
I have a problem, for my school project I need to scrape image from Ikea's website, the pagination part of the website is here: 我有一个问题,对于我的学校项目,我需要从宜家网站上刮取图像,该网站的分页部分位于:
<div id="pagination" class="pagination">
<a href="#" onclick="return false;" class="active">1</a>
<a href="/cn/en/search/?query=green&pageNumber=2">2</a>
<a href="/cn/en/search/?query=green&pageNumber=3">3</a>
<a href="/cn/en/search/?query=green&pageNumber=4">4</a>
<a href="/cn/en/search/?query=green&pageNumber=5">5</a>
...
<a href="/cn/en/search/?query=green&pageNumber=35">35</a>
</div>
I referenced this spread, filter by text , .paginate('.active ' + '.pagination a:contains(pageNumber)@href')
, but it doesn't work. 我引用了此传播,并通过text
.paginate('.active ' + '.pagination a:contains(pageNumber)@href')
,但它不起作用。
Any leads? 有线索吗?
Thanx! 谢谢!
尝试使同级的href属性进入活动页面:
.paginate('.pagination .active + a@href')
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.