scrim

scrape image URIs from HTML

scrim - scrape image URIs from HTML

The scrim Node.js module scrapes image URIs from HTML documents. Pipe an HTML formatted string to it, and scrim emits image URIs.

var scrim = require('scrim')
  , cop = require('cop')
  , http  = require('http')

http.get('http://www.nodejs.org', function (res) {
  res
    .pipe(scrim())
    .pipe(cop(function (uri) { return uri + '\n' }))
    .pipe(process.stdout)
})

The scrim module exports a single function that returns a Transform stream.

Install with npm:

npm install scrim

MIT License