I am currently scrapping a website with Node.js and Puppeteer and I got innerHTML. The problem is that I need to get second div in a same level, something like this:
<!-- Really basic version of my innerHTML -->
<div class='1'>... </div>
<div class='2'>
<p>1</p>
</div>
I can't use classes, I can't get higher, so is there a way to get class 2 div from this kind of innerHTML
? I am trying div:nth-child(2)
with Cheerio, but it returns me class 1 div
's second element.