Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/michaelnisi/scrim
Scrape image URIs from HTML document
https://github.com/michaelnisi/scrim
Last synced: about 1 month ago
JSON representation
Scrape image URIs from HTML document
- Host: GitHub
- URL: https://github.com/michaelnisi/scrim
- Owner: michaelnisi
- License: mit
- Created: 2013-02-18T19:28:30.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2013-05-12T19:43:45.000Z (over 11 years ago)
- Last Synced: 2024-10-13T18:45:31.241Z (2 months ago)
- Language: JavaScript
- Homepage:
- Size: 133 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# scrim - scrape image URIs from HTML
[![Build Status](https://secure.travis-ci.org/michaelnisi/scrim.png?branch=master)](https://travis-ci.org/michaelnisi/scrim)
The `scrim` [Node.js](http://nodejs.org/) 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](http://nodejs.org/api/stream.html#stream_class_stream_transform) stream.
## Installation
Install with [npm](https://npmjs.org):
npm install scrim
## License
[MIT License](https://raw.github.com/michaelnisi/scrim/master/LICENSE)