supercheer

0.1.1 • Public • Published

supercheer

CircleCIView on NPM View on NPM

supercheer is a wrapper, wrapping superagent and cheerio, make it easy to do crawling webpage.

Setup


Install:

npm install supercheer --save

Usage


const supercheer = require('supercheer');

const r = await supercheer.query(
  'https://www.google.com/',
  {
    title: 'title',
    firstChar: 'title',
  },
  {
    firstChar: (v) => v.slice(0, 1),
  }
);

// {
//   title: 'Google',
//   firstChar: 'G',
// }
console.log(r);

License


MIT. See LICENSE for details.

Package Sidebar

Install

npm i supercheer

Weekly Downloads

0

Version

0.1.1

License

MIT

Unpacked Size

5.99 kB

Total Files

8

Last publish

Collaborators

  • allanbian1017