The syntax to get only div you are interested in
//*[@id="__next"]/div[1]/div/main/div[1]/div/div/div/div[position()>=12 and position()<=22]/div
To get the list of text, we will inspect the first element, a new DevTools Window will appear. We put on il just previous to the selected div and Expand recursively
Then, in Console window, the write
console.log($0.textContent)
No hay comentarios:
Publicar un comentario