mrspider-css-image-extraction
v1.1.0
Published
mrspider middleware to extract image urls from a webpage.
Downloads
10
Readme
mrspider-css-image-extraction
Middleware for mrspider to extract images from a web page. Typically used after mrspider-request and mrspider-cheerio or mrspider-jsdom the page data object will contain the images with the supplied key.
Install
npm i -S mrspider-css-image-extraction
Usage
var mrspider = require('mrspider'); var spider = mrspider();
var imageExtraction = require('mrspider-css-image-extraction'); var imageExtractor = imageExtraction({ main: '.main', thumbs: '.thumb' });
spider.use(imageExtractor);