nextLinkByUrl
Se não houver elemento next, você pode gerar um href a partir da URL atual. [0] é a string RegExp, [1] a string de substituição, [2] o selector/XPath que deve existir, [3] o selector/XPath que NÃO deve existir. Você pode usar {} para cálculos simples (+ - * /).
Exemplo 1:
"nextLinkByUrl": [
"&page=(\\d+)",
"&page={$1+1}"
]
Cria o próximo link
http://abc.xxx/d?page=2a partir da URL atualhttp://abc.xxx/d?page=1.
Exemplo 2:
"nextLinkByUrl": [
"&page=(\\d+)&pn=(\\d+)",
"&page={$1+1}&pn={$2*10}",
".article>.item",
".disable>button"
]
Cria
http://abc.xxx/d?page=2&pn=10a partir dehttp://abc.xxx/d?page=1&pn=1. Para se.article>.itemnão existir ou se.disable>buttonaparecer.