Nom

Om nom nom. Super simple screen scrapper!

Nom uses cheerio to provide the core jQuery API for grabbing and manipulating the response.

Installation: npm install nom or npm install -g nom if you want to use it on the CLI.

Sample usage:

From script:

1
2
3
4
5
6
7
8
var nom = require('nom');

nom('http://nmotw.in', function(err,$) {
  console.log( $('title').text() );
});

// Would log :
// Node Module Of The Week  | NMOTW

From CLI:

1
2
$ nom http://nmotw.in 'title'
Node Module Of The Week  | NMOTW

GIF FTW!

Thanks to Matt Mueller for nom.

Suggest a module

Comments