【发布时间】:2016-05-16 20:34:28
【问题描述】:
在 Windows 7 上批处理和 xidel 我在一个带有分页的网站上进行测试,例如:
链接1
链接2
链接3
1 2 3 4 5 6 7 8 9 10 下一个
我找到了获得前 10 个链接的方法:
xidel.exe https://www.website.es/search?q=xidel+follow+pagination^&start=0 --extract "//a/extract(@href, 'url[?]q=([^&]+)&', 1)[. != '']"
但是当我尝试跟随到第 2 页或第 (n) 页时
-f "<A class="fl">{.}</A>"
或
--follow "//a/[@class='nav']"
nothink 工作,你能给我一些帮助或一些例子吗?
谢谢。
【问题讨论】:
标签: windows batch-file pagination xidel