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.1.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.1-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: count_web_content-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 07d0e4e67418a62d60fab4042b31d3ef5e7495c8e8c6f0cb2495e4cf4f0637a9
MD5 b7bc96291630c0775806acecf98697b4
BLAKE2b-256 048fff724ba7034e80963a1c333d34e2dd54f87b5d9e0a1d49d1873323da30ba

See more details on using hashes here.

File details

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

File metadata

  • Download URL: count_web_content-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 011df8c25833ae18fb0efd568957be413c43d766516372375efb1fcd54643799
MD5 3b1a5466fcd7acf76baa03afd6f36af1
BLAKE2b-256 77411c51f2c09fc0ac89563c522efd21a076190b044ac25104fa96d15de8be11

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