Ineed

ineed

Web scraping and HTML-reprocessing. The easy way.

ineed-logo

ineed allows you collect useful data from web pages using simple and nice API.

It doesn't build and traverse DOM-tree, it operates on sequence of HTML tokens instead. Whole processing is done in one-pass, therefore, it's blazing fast!

Get it: npm install --save ineed

Usage: ineed.<action>[.<plugin>...].<from*>

Where action could be: collect or reprocess

plugin could be one of: .comments .cssCode .hyperlinks .images .jsCode .scripts .stylesheets .texts .title

from could be: from or fromHtml

P.S: One could write a custom plugin using the .using() method.

Code sample:

1
2
3
4
var ineed = require('ineed');

ineed.collect.images.hyperlinks.scripts.stylesheets.from('http://nmotw.in',
    (err, response, result) => console.log(result));
1
2
3
var ineed = require('ineed');

var result = ineed.collect.texts.images.scripts.fromHtml(html);

GIF FTW!

ineed

Thanks to Ivan Nikulin for this cheeky module.

Suggest a module

Comments