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.

Source Distribution

word-counter-0.0.3.tar.gz (4.0 kB view details)

Uploaded Source

File details

Details for the file word-counter-0.0.3.tar.gz.

File metadata

  • Download URL: word-counter-0.0.3.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/3.8

File hashes

Hashes for word-counter-0.0.3.tar.gz
Algorithm Hash digest
SHA256 3dbd2217c9826fe84f63ec86d97d56ae3d7887bb7af94973c2b0e660b93f47eb
MD5 fa320e67eea916465619215045219883
BLAKE2b-256 d753ee754ec26754d95c61a64279bb69bca3db41c6466a13696dd27f169330ce

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page