webpage-wc
v1.0.5
Published
Prints number of words in one or more webpages using the Readablity API
Downloads
5
Maintainers
Readme
webpage-wc
Prints number of words in one or more webpages using the Mercury Web Parser API
Installation
npm install -g webpage-wc
Usage
webpage-wc url1 url2 ... [--token <api_key>]
You only need to pass the API key on the first run. It will be saved to your configuration directory and automatically read on subsequent runs.
You can get your key at https://mercury.postlight.com/web-parser/.
Caveats
Although the Mercury Web Parser API reports the total word count in the parsed article, this number is not accurate as it includes the number of words in code blocks, webpage-wc
does not include code blocks in the total word count, so only normal paragraphs are considered.