Skip to content

kairi003/gas-html-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gas-html-parser

node-html-parser bundles for Google Apps Script.

GAS Project: https://script.google.com/home/projects/1JTLPVXGW6Pq4zSAV5ED9XrWOPydVywumQZSOWN7l6KJ0UtWxtX3RbYO6

Install

Script ID :1JTLPVXGW6Pq4zSAV5ED9XrWOPydVywumQZSOWN7l6KJ0UtWxtX3RbYO6

Example

const html = `<body>
  <ul id="fruits">
    <li class="apple">Apple</li>
    <li class="orange">Orange</li>
    <li class="pear">Pear</li>
  </ul>
</body>`;
const dom = HtmlParser.parse(html);
console.log(dom.querySelector('#id .pear').textContent);

Build

git clone {REMOTE_REPOSITORY}
cd /d {REPOSITORY_NAME}
npm install
npm run build

Reference

About

node-html-parser bundles for Google Apps Script.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published