Skip to main content

No project description provided

Project description

Python package to count web content at a given URL

Installation

$ pip install count-web-content

Usage

Simple usage:

count, in_root_count, add_dict = count_page.count_pages(
    root_url="https://mame77.com/",
    is_print_working=True,
    additional_url=["https://mame77.com/posts/", "https://mame77.com/about"],
    exclude_url=["https://mame77.com/posts/hogehoge"],
    output_url_file_name="output_url.txt",
)

Arguments

  • root_url : This package counts the number of files in the content of the URL.
  • additional_url : If specified, You can specify additional URLs to count the number of files.
    This is optional and must be under the same domain as the root_url.
  • exclude_url : If specified, You can specify URLs to exclude from the count.
  • sleep_sec: The number of seconds to sleep between requests.
  • is_print_working: If True, the package will print the URL it is currently working on and the number of remaining URLs.
  • output_url_file_name: If specified, the package will output the URLs to a file.

Return values

  1. page~count : The number of files in the content of the URL.
  2. in_root_count : The number of files in the content of root URL.
  3. additional_dict : The number of files in the content of additional URLs.
  4. exclude_dict : The number of files in the content of exclude URLs.

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

count_web_content-0.1.2.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

count_web_content-0.1.2-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file count_web_content-0.1.2.tar.gz.

File metadata

  • Download URL: count_web_content-0.1.2.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.12.1 Linux/6.5.0-1025-azure

File hashes

Hashes for count_web_content-0.1.2.tar.gz
Algorithm Hash digest
SHA256 80673990432c2ec80c360c76b819ec57bf5731235d1a7dde98f8038892ad849d
MD5 c2e77ab94b213db2a48a0b157b309b23
BLAKE2b-256 a34c75a862932596c0046ccdcb0dda6c77f54417b6f06b688ffa1f189222d114

See more details on using hashes here.

File details

Details for the file count_web_content-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: count_web_content-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 3.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.12.1 Linux/6.5.0-1025-azure

File hashes

Hashes for count_web_content-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d1f528ecbe69dab61d74dbab5904062fc612947437a6b75a73d921cceec17d03
MD5 3a669223d09d071a8861c0208972103b
BLAKE2b-256 35d70ee82c33c25dd34ff14c1d74262915007462e4fd4d68e4030e7a01cc5c7c

See more details on using hashes here.

Supported by

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