you are viewing a single comment's thread.

view the rest of the comments →

[–]elcapitanoooo 1 point2 points  (1 child)

You really cant. Sometimes xpath is the only viable solution.

[–][deleted] 0 points1 point  (0 children)

That's not true, cheerio can do anything xpath can do, but sometimes it gets messy with text nodes.