i've this absurd repeted html structure (without classes) and i need to capture all links and the below text.
I can easily get all links with the supersimple css query selector a
but i need to catch another text placed in a sibling of the link's ancestor (the captured text must be captured alongside the link).
so i should to go up through the divs levels and then go down again
Some suggestion how to climb and than to descend by css selector?
...
...
...
<div> <----first level of div
<div> <----second level of div
<span>
<span>
<div> <----third level of div
<a href=""> <----element that i can get easily
</div>
</span>
</span>
</div>
<div></div>
<div>
<span>
<span>
text to capture <----text i need to capture
</span>
</span>
</div>
<div>
...
...
...