1.2.4 • Published 9 years ago

scrape-keywords v1.2.4

Weekly downloads
1
License
MIT
Repository
-
Last release
9 years ago

Simple mashup to scrape a web page for keywords. Provide an optional jQuery selector string to select content body text.

Usage

CLI

$ npm install scrape-keywords; cd node_modules/$_
$ npm start --url="http://edition.cnn.com/2015/07/25/us/san-francisco-pee-proof-paint/index.html" --selector="#body-text" --silent
city
public urination
pee proof paint
san francisco
public works
city s
urine
coated
urinating
cnn
problem
s public urination
combat
inspired
walls

Require

var scrape = require('scrape-keywords'); // Signature: scrape(url, selector, gramophoneOptions, requestOptions)

var url = 'http://edition.cnn.com/2015/07/25/us/san-francisco-pee-proof-paint/index.html',
    selector = '#body-text';

    scrape(url, selector)
        .then(function(res){
            console.log(res);
        });
1.2.4

9 years ago

1.2.3

9 years ago

1.2.2

9 years ago

1.2.1

9 years ago

1.2.0

9 years ago

1.1.0

9 years ago

1.0.0

9 years ago