aimer-nightmare

1.0.0 • Public • Published

aimer-nightmare NPM version NPM downloads Build Status

Aimer for single page application.

Install

$ npm install --save aimer-nightmare

Usage

const nightmare = require('aimer-nightmare')
 
nightmare('http://some-url.com/#!/list')
  .then($ => {
    // your code goes here
    const src = $('img').attr('src')
  })

API

nightmare(url, opts)

Use nightmare to retrieve html from url, this is good for handling SPA website.

opts

cheerio

cheerio options. Except decodeEntities is false by default here.

nightmare

nightmare options.

License

MIT © EGOIST

/aimer-nightmare/

    Package Sidebar

    Install

    npm i aimer-nightmare

    Weekly Downloads

    2

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • kchan