1.0.1 • Published 8 years ago

czombie-image v1.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

czombie-image

Build Status Code Climate Code Coverage npm Version JS Standard

Crawl images from web sites

Installation

$ npm install czombie-image --save

Usage

'use strict'

const czombieImage = require('czombie-image')
const co = require('co')
const assert = require('assert')

co(function * () {
  let url = 'http://www.google.co.jp/search?q=cat&espv=2&biw=1023&bih=1028&site=webhp&source=lnms&tbm=isch&sa=X&ved=0ahUKEwih-Lmer5jQAhXBVbwKHV_mBRoQ_AUIBigB'
  let { saved } = yield czombieImage(url, {
    skipError: true
  })
  assert.ok(saved)
}).catch((err) => console.error(err))

License

This software is released under the MIT License.

Links