scrape-keywords

1.2.4 • Public • Published

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);
        });

Readme

Keywords

Package Sidebar

Install

npm i scrape-keywords

Weekly Downloads

8

Version

1.2.4

License

MIT

Last publish

Collaborators

  • ronalddddd