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.5.tar.gz (11.6 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.5-py3-none-any.whl (14.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sd_spider_utils-1.0.5.tar.gz
  • Upload date:
  • Size: 11.6 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.5.tar.gz
Algorithm Hash digest
SHA256 d0b480917b5481f0852b6dec8b6ab074a638d37daa9068293d10b08cf82571db
MD5 cfdd761ff482e81e7edf1ecb7dafec5b
BLAKE2b-256 b4a128e72c6b46c64c0f795bf40ad313cc0b644842c940381472a647e4990d65

See more details on using hashes here.

Provenance

The following attestation bundles were made for sd_spider_utils-1.0.5.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.5-py3-none-any.whl.

File metadata

  • Download URL: sd_spider_utils-1.0.5-py3-none-any.whl
  • Upload date:
  • Size: 14.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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 fb9205ffa997bec06b978d977966b2e97e64fc30a39ca2122f9ce4fec50c1d50
MD5 a60ea062bebd8d1cad9d3f1bdd39b027
BLAKE2b-256 d5e441b1bedf5bec46a1043d99b7ba67d9fd410b3390d5c933d6441932b59627

See more details on using hashes here.

Provenance

The following attestation bundles were made for sd_spider_utils-1.0.5-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