Poli Parse
Political news scraping & NLP parsing from web pages.
Usage
To use this module, install from npm, install locally using the command below, or clone this repository and import the .js files directly from source.
npm i poli-parse
Imports
Imports can be done through the aggregating index.js file or via individual members.
Full Import
const PoliParse = ; // from sourceconst PoliParse = // from npm // es6; // from source; // from npm
Individual Import
// from sourceconst Parse = ; const Parse = ;; // es6
Methods
The collection below is just a sample of methods and may be out of date. For the most recent examples, please see the samples folder in the root directory of this repository.
Basic
Basic scrape/parse example.
const PP = ; // import library // hit the homepage of wsj.comPPScrape;
Advanced
More advanced scrape/parse example, with analysis logic added.
const PP = ; // import library PPScrape;
Commands
The following commands are available during development.
npm test # run tests with Jest npm run coverage # run tests with coverage and open it on browser npm run lint # lint code npm run docs # generate docs npm run build # transpile code