Skip to content

Latest commit

 

History

History
32 lines (21 loc) · 687 Bytes

README.md

File metadata and controls

32 lines (21 loc) · 687 Bytes

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