I\'m into some web scraping with Node.js. I\'d like to use XPath as I can generate it semi-automatically with several sorts of GUI. The problem is that I cannot find a way t
With just one line, you can do it with xpath-html:
const xpath = require("xpath-html"); const node = xpath.fromPageSource(html).findElement("//*[text()='Made with love by']");