Skip to content

Scrap a html page and convert all text on the page into an array.

License

Notifications You must be signed in to change notification settings

RobertJGabriel/html-to-array

Repository files navigation

html-to-array NPM version Build Status Dependency Status Coverage percentage

Scrap a html page and convert all text on the page into an array.

Installation

$ npm install --save html-to-array

Usage

const HTML_TO_ARRAY = require('html-to-array');
const URL = 'https://www.robertgabriel.ninja';
HTML_TO_ARRAY.scrap(URL).then(data =>)
;
// Returns an object
/*
  let object = {
    message: 'success',
    sentences: ['Robert gabriel is cool', 'Here is sentece two']
  };
*/
// Error
/*
  let object = {
    message: 'error',
    sentences: []
  };
*/

License

Apache-2.0 © Robert James Gabriel

About

Scrap a html page and convert all text on the page into an array.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published