Skip to main content

Count the number of words on the specified URL(s).

Project description

https://img.shields.io/pypi/v/word-counter.svg https://img.shields.io/pypi/l/word-counter.svg https://img.shields.io/pypi/pyversions/word-counter.svg https://img.shields.io/github/contributors/sig9org/word-counter.svg

word-counter

Count the number of words on the specified URL(s).

Requirements

  • python 3.4+
  • libicu-devel

Installation

In case of CentOS8, execute as follows:

# dnf -y install libicu-devel
# pip install word-counter

Usage (CLI)

Count words.

$ word-counter --klass 'site-content' https://blogs.cisco.com/developer
{
  "count": 226,
  "count_duplicates": 377,
  "words": {
    ",": 18,
    "2020": 11,
    ".": 11,
    .
    .
    .
    "DevNetAPIsnetwork": 1,
    "monitoringStealthwatch": 1,
    "1234": 1
  }
}

Count words in multiple URLs.

$ word-counter \
>     https://blogs.cisco.com/developer/node-red-webinar \
>     https://blogs.cisco.com/developer/meraki-python-sdk-webinar \
>     https://blogs.cisco.com/developer/understanding-meraki-apis
{
  "count": 404,
  "count_duplicates": 1018,
  "words": {
    ",": 51,
    "the": 36,
    "and": 30,
    .
    .
    .
    "Related": 1,
    "Resources": 1,
    "certifications": 1
  }
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for word-counter, version 0.0.3
Filename, size File type Python version Upload date Hashes
Filename, size word-counter-0.0.3.tar.gz (4.0 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page