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.2.tar.gz (7.3 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.2-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sd_spider_utils-1.0.2.tar.gz
  • Upload date:
  • Size: 7.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.14

File hashes

Hashes for sd_spider_utils-1.0.2.tar.gz
Algorithm Hash digest
SHA256 09b3883422fd3c474795e1b873cab39b90b3f42725e7398216f3eab336709444
MD5 beac59aee3f96698967e2456f588ecd6
BLAKE2b-256 6ab4fa90a7ad40e0673fad7bb6a0737c2a4d535e04d1a278912d6cd37890e99d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sd_spider_utils-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 cb900f0ea5a3ef1a223a2963e0f5e064731ac2c1cd564b03b00a9c9e180cf202
MD5 161d962f1efeeee2a633726d34d7e0a1
BLAKE2b-256 a78f4b5ddfb7673fa005324f77559ebf69e70ba3465c26793b77f150ee571099

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