test.data
<a href="https://file-x64.zip" >https://file-x64.zip</a> <a href="https://file.zip" >https://file.zip</a>
xidel-0.9.9.20220102.8308.be361bf9a08e.win32.zip
xidel.exe --silent --xpath "//a[ends-with(@href, '.zip')]/@href[1]" test.data https://file-x64.zip
... as expected
xidel.exe --silent --xpath "//a[ends-with(@href, '.zip')]/@href[2]" test.data https://file.zip
xidel-0.9.9.20220131.8335.4e6fcea4d02e.win32.zip
xidel.exe --silent --xpath "//a[ends-with(@href, '.zip')]/@href[1]" test.data https://file-x64.zip https://file.zip
.... ????
xidel.exe --silent --xpath "//a[ends-with(@href, '.zip')]/@href[2]" test.data ./.
.... ???? !!!
Anonymous
You seem to have CSS turned off. Please don't fill out this field.
The old way was a bug, now it should be correct
You need to write (//a[ends-with(@href, '.zip')]/@href)[2]
(//a[ends-with(@href, '.zip')]/@href)[2]
thx
... wrx
test.data
xidel-0.9.9.20220102.8308.be361bf9a08e.win32.zip
xidel.exe --silent --xpath "//a[ends-with(@href, '.zip')]/@href[1]" test.data
https://file-x64.zip
xidel.exe --silent --xpath "//a[ends-with(@href, '.zip')]/@href[2]" test.data
https://file.zip
xidel-0.9.9.20220131.8335.4e6fcea4d02e.win32.zip
xidel.exe --silent --xpath "//a[ends-with(@href, '.zip')]/@href[1]" test.data
https://file-x64.zip
https://file.zip
xidel.exe --silent --xpath "//a[ends-with(@href, '.zip')]/@href[2]" test.data
./.
The old way was a bug, now it should be correct
You need to write
(//a[ends-with(@href, '.zip')]/@href)[2]
thx
... wrx