Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/rauljordan/imagegrab.js
- Owner: rauljordan
- License: other
- Created: 2015-07-09T17:44:31.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-07-10T01:00:13.000Z (over 9 years ago)
- Last Synced: 2024-10-10T18:13:47.081Z (about 1 month ago)
- Language: JavaScript
- Size: 113 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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