Skip to main content

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

Project description

一个高效的 Python 爬虫工具库,提供解析、文本标准化等常用功能,助力快速开发爬虫项目。

安装

使用 pip 安装:

pip install sd_spider_utils

使用示例

from sd_spider_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.1.tar.gz (7.2 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.1-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sd_spider_utils-1.0.1.tar.gz
  • Upload date:
  • Size: 7.2 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.1.tar.gz
Algorithm Hash digest
SHA256 598f29652ff7f66b6e1fcf50eba47db7949322bef137663c7cb2bc504cc6418a
MD5 2a1056fd295905132c8fa0b6f2f2361a
BLAKE2b-256 14288e9e254fe0027dbce23d5361444022d553a4b5415cd9cd31fb00f6f15a8c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sd_spider_utils-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c84cbd63e7795314543d33b8798a076ba8bffc1f8631123cca61c30525b068e5
MD5 3fd7a487bfec0ee2d94d3cecd1d0c48e
BLAKE2b-256 6a2c49bc36e621b6bcd347e9d4ef078bffb8fdea4054128fdc4ce58c774fced6

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