Skip to main content

爬虫工具包,写爬虫更快!!!

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

sd_spider_utils-1.0.6.tar.gz (12.5 kB view details)

Uploaded Source

Built Distribution

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

sd_spider_utils-1.0.6-py3-none-any.whl (15.0 kB view details)

Uploaded Python 3

File details

Details for the file sd_spider_utils-1.0.6.tar.gz.

File metadata

  • Download URL: sd_spider_utils-1.0.6.tar.gz
  • Upload date:
  • Size: 12.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for sd_spider_utils-1.0.6.tar.gz
Algorithm Hash digest
SHA256 9855fa4b3f87eeb18a48618f25a1b31bd2afdf685fa0d3084dc86eef30abfe0b
MD5 0c1bbbdc9655cb901f670d6e0da56e86
BLAKE2b-256 e6ba170a6d5e86297cf5b2f5de20bab2ea7b5f0251028619fb5cb511a9d378de

See more details on using hashes here.

Provenance

The following attestation bundles were made for sd_spider_utils-1.0.6.tar.gz:

Publisher: publish.yml on StarDreamTech/sd-spider-utils

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sd_spider_utils-1.0.6-py3-none-any.whl.

File metadata

  • Download URL: sd_spider_utils-1.0.6-py3-none-any.whl
  • Upload date:
  • Size: 15.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for sd_spider_utils-1.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 fa832bb2f2e40af5dd7dd20a0587607627e198bd8f3234b23bb28859a0a2f6c6
MD5 e0a544fe15f69beec5cfc32bdaff420d
BLAKE2b-256 783fcd629c2b8955744a9ce63bb4d8f4ecbee76e5e8a618d19a8f8fecd304754

See more details on using hashes here.

Provenance

The following attestation bundles were made for sd_spider_utils-1.0.6-py3-none-any.whl:

Publisher: publish.yml on StarDreamTech/sd-spider-utils

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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