Skip to main content
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
  }
}

Metadata

Release files for word-counter 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for word-counter 0.0.3
File Size Uploaded Provenance Actions
word-counter-0.0.3.tar.gz 4.0 kB Without provenance Details for word-counter-0.0.3.tar.gz

Release files / word-counter-0.0.3.tar.gz

Download URL word-counter-0.0.3.tar.gz
Size 4.0 kB
Tags Source
SHA-256 checksum
How to use checksums
3dbd2217c9826fe84f63ec86d97d56ae3d7887bb7af94973c2b0e660b93f47eb
BLAKE2b-256 checksum
How to use checksums
d753ee754ec26754d95c61a64279bb69bca3db41c6466a13696dd27f169330ce
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Python-urllib/3.8

Security for word-counter 0.0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.3 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page