imagegrab
v1.0.0
Published
Given a URL, fetches a list of all images in that webpage using Node.js
Downloads
4
Readme
ImageGrab.js
Given a URL, fetches a list of all images in that webpage using node.js's request module
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