IonicaBizau/scrape-it

Can't select nth element

PtruckStar opened this issue · 1 comments

I'm trying to select nth-child of element but not getting the result
Here is the HTML:

<div class="naveps">
  <div class="nvs"><a href="#">...</a></div>
  <div class="nvs nvsc"><a href="#">...</a></div>
  <div class="nvs"><a href="#">...</a></div>
</div>

Code I use:

next: {
      selector: ".naveps",
      eq: 1,
      how: i => i.toString()
    }

Expecting to get HTML <a> tag, but turn nothing

Try using selector: ".naveps a".