co-node-read
v0.0.2
Published
co wrapper for node-read
Downloads
4
Readme
co-node-read
Usage
read(html [, options])
Where
- html url or html code.
- options is an optional options object
Example
var co = require('co');
var read = require('./index');
co(function * () {
var article = yield read('http://news.163.com/14/0905/18/A5DA5S6N00014SEH.html');
// Main Article.
console.log(article.content);
// Title
console.log(article.title);
// HTML
console.log(article.html);
// DOM
console.log(article.dom);
})();
LISENCE
MIT