Scrape image URIs from HTML document
JavaScript
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
example
test
.gitignore
.travis.yml
LICENSE
README.md
index.js
package.json

README.md

scrim - scrape image URIs from HTML

Build Status

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

Usage

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)
})

scrim()

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

Installation

Install with npm:

npm install scrim

License

MIT License