1.0.0 • Published 9 years ago

imagegrab v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
9 years ago

ImageGrab.js

Given a URL, fetches a list of all images in that webpage using node.js's request module

Build Status

Usage

function imgrab (url, callback)

  • url: a url string for the desired site
  • callback: a function to process the retrieved image URLs from the website
> var imgrab = require('imagegrab');
> imgrab('http://mysite.com', function (images) {
    console.log(images);
  })
> ['http://mysite.com/image1.jpg', 'http://mysite.com/image2.jpg']

Install

With npm do:

npm install imagegrab

License - MIT