Miss any of our Open RFC calls?Watch the recordings here! »

aimer

0.1.0 • Public • Published

aimer NPM version NPM downloads Circle CI

Remote web content crawler done right.

Motivation

Sometimes I want grab some nice images from a url like http://bbs.005.tv/thread-492392-1-1.html, so I made this little program to combine node-fetch and cheerio to make my attempt fulfilled.

Install

$ npm install --save aimer

Usage

const aimer = require('aimer')
 
aimer('http://some-url.com/a/b/c')
    .then($ => {
        $('img.nice-images').each(function () {
            const url = $(this).attr('src')
            console.log(url)
        })
    })

API

aimer(url, opts)

opts

cheerio options. Except decodeEntities is false by default here.

License

MIT © EGOIST

Keywords

none

Install

npm i [email protected]

Version

0.1.0

License

MIT

Last publish

Collaborators

  • avatar
  • avatar