Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rauljordan/imagegrab.js

Given a URL, fetches a list of all images in that webpage using Node.js
https://github.com/rauljordan/imagegrab.js

Last synced: 8 days ago
JSON representation

Given a URL, fetches a list of all images in that webpage using Node.js

Awesome Lists containing this project

README

        

# ImageGrab.js

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

[![Build Status](https://travis-ci.org/rauljordan/imagegrab.js.svg?branch=master)](https://travis-ci.org/rauljordan/imagegrab.js)

# 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](http://npmjs.org) do:

```
npm install imagegrab
```

# License - MIT