Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
lib
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

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

Releases

No releases published

Packages

No packages published
You can’t perform that action at this time.