scrape-keywords
v1.2.4
Published
Scrape keywords from a web page.
Downloads
24
Readme
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);
});