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, exclude_dict = count_page.count_pages(
"https://mame77.com/",
is_print_working=True,
additional_url=["https://mame77.com/posts/", "https://mame77.com/about"],
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 theroot_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: IfTrue, 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
page~count: The number of files in the content of the URL.in_root_count: The number of files in the content of root URL.additional_dict: The number of files in the content of additional URLs.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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file count_web_content-0.1.3.tar.gz.
File metadata
- Download URL: count_web_content-0.1.3.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b6047447124f796711f07e75cdb04580dea66b7ddb3d8fbcc3e406eba86ff409
|
|
| MD5 |
f173a965e00e1c722a591d1e746496b0
|
|
| BLAKE2b-256 |
eb74a16f4e4fae13a8dc62e7831f3e0fe3df623c97b0e64f54ce468eae908ad7
|
File details
Details for the file count_web_content-0.1.3-py3-none-any.whl.
File metadata
- Download URL: count_web_content-0.1.3-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6f94c87129db24207ecc2c954b820b30ea6777e3567d24019962fa345b717ef7
|
|
| MD5 |
366c174ff6fdf6d6487c3469f5f8640c
|
|
| BLAKE2b-256 |
4dc26a97ed0f577637e7e04a38cd26b1559f11e7508f0a6e829501be5e3b9bf5
|