爬虫工具包,写爬虫更快!!!
Project description
一个高效的 Python 爬虫工具库,提供解析、文本标准化等常用功能,助力快速开发爬虫项目。
安装
使用 pip 安装:
pip install sd_spider_utils
使用示例
from sd_spider_utils.text_utils import normalize_text text = "Café['S.\u2009M. Koksbang\xa0', 'S.\u2009M. Koksbang']" # 包含全角字符和组合字符 clean_text = normalize_text(text) print(clean_text)
功能特性
HTML 解析:快速提取网页中的文本内容。
文本标准化:清洗和规范化抓取到的文本数据。
常用工具函数:如 User-Agent 随机生成、请求重试机制等。
项目链接
许可证
MIT License,详见 LICENSE 文件。
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 sd_spider_utils-1.0.3.tar.gz.
File metadata
- Download URL: sd_spider_utils-1.0.3.tar.gz
- Upload date:
- Size: 10.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
877330dd1f7628e4a156b91b67fa5abbf624289f48ec0bfa6db94d56e5364d03
|
|
| MD5 |
26b1477c801ac3854c1d2d1a444ffc6e
|
|
| BLAKE2b-256 |
29953179084f57a63427e2c1c5ca944fc87e90284e1261db470cba7c7947176d
|
Provenance
The following attestation bundles were made for sd_spider_utils-1.0.3.tar.gz:
Publisher:
publish.yml on StarDreamTech/sd-spider-utils
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sd_spider_utils-1.0.3.tar.gz -
Subject digest:
877330dd1f7628e4a156b91b67fa5abbf624289f48ec0bfa6db94d56e5364d03 - Sigstore transparency entry: 1855965641
- Sigstore integration time:
-
Permalink:
StarDreamTech/sd-spider-utils@d293157764fff9c2aba3c9099e6998e8a3585900 -
Branch / Tag:
refs/tags/v1.0.3 - Owner: https://github.com/StarDreamTech
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@d293157764fff9c2aba3c9099e6998e8a3585900 -
Trigger Event:
push
-
Statement type:
File details
Details for the file sd_spider_utils-1.0.3-py3-none-any.whl.
File metadata
- Download URL: sd_spider_utils-1.0.3-py3-none-any.whl
- Upload date:
- Size: 12.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b83371a0d451f0882740b7e81a5a91df159203ce0cc53a31e641feec8cdaee2c
|
|
| MD5 |
5c9f16d2fb2b87d5e2939186351c7adf
|
|
| BLAKE2b-256 |
0dccd4a66d13a2aff36521234836d81d24b129f2241137875aeffdec74a68dbb
|
Provenance
The following attestation bundles were made for sd_spider_utils-1.0.3-py3-none-any.whl:
Publisher:
publish.yml on StarDreamTech/sd-spider-utils
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sd_spider_utils-1.0.3-py3-none-any.whl -
Subject digest:
b83371a0d451f0882740b7e81a5a91df159203ce0cc53a31e641feec8cdaee2c - Sigstore transparency entry: 1855965705
- Sigstore integration time:
-
Permalink:
StarDreamTech/sd-spider-utils@d293157764fff9c2aba3c9099e6998e8a3585900 -
Branch / Tag:
refs/tags/v1.0.3 - Owner: https://github.com/StarDreamTech
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@d293157764fff9c2aba3c9099e6998e8a3585900 -
Trigger Event:
push
-
Statement type: