gigantes
TypeScript icon, indicating that this package has built-in type declarations

0.0.17 • Public • Published

Gigantes

It is a scraping framework that allows you to specify the DOM and declaratively describe the information to be extracted.

Installation

npm install gigantes

Documentation

visit https://44x1carbon.github.io/gigantes/

Usage

const h1Selector = domSelector({
  tagName: { eq: "h1" },
}).first();

const h1Text = h1Selector.extract((domNode) => domNode.text);

const result = run("https://xxxxx.xxx").extractBody({
  h1Text: h1Text,
});

console.log(result); // { h1Text: 'Gigantes' }

Readme

Keywords

Package Sidebar

Install

npm i gigantes

Weekly Downloads

0

Version

0.0.17

License

ISC

Unpacked Size

148 kB

Total Files

117

Last publish

Collaborators

  • 44x1carbon