Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

xpath nodejs

const xpath = require("xpath-html");
const node = xpath.fromPageSource(html).findElement("//*[contains(text(), 'with love')]");
// There is a library xpath-html that can help you using XPath to query HTML, with minimal efforts and lines of code.
// https://github.com/hieuvp/xpath-html
Source by gist.github.com #
 
PREVIOUS NEXT
Tagged: #xpath #nodejs
ADD COMMENT
Topic
Name
1+3 =