Skip to main content

贴吧一体化异步爬取与HTML/LLM数据处理工具箱

Project description

贴吧一体化工具箱 (tieba-toolkit)

Python Version License

本项目将高效的贴吧异步爬虫 (craw3.4.8.py) 和 Apple 风格的 HTML 查看器生成工具 (conv_v2.1.py) 封装成了一个易于安装和使用的 Python 库及命令行工具。


🚀 1. 核心功能与特性

模块 功能描述
异步爬虫 基于 aiotieba,实现高并发、异步的帖子内容和图片爬取。
断点续爬 自动记录 checkpoint,支持中断后恢复爬取,无需担心进度丢失。
图片下载 多工作线程异步下载帖子中所有图片资源,支持重试机制。
HTML 转换 将爬取的原始 JSON 数据转换为单文件、美观的 Apple 风格 HTML 查看器,支持异步加载和分页浏览,便于本地离线预览。
CLI 命令行 提供 tieba-cli 命令,统一管理爬取、转换和列表查看功能。

⚙️ 2. 安装与环境要求

2.1 环境要求

  • Python 3.8+
  • 贴吧登录凭证:BDUSS(必须通过环境变量设置)

2.2 安装

使用 pip 即可从 PyPI 安装 tieba-toolkit(假设您已完成发布):

pip install tieba-toolkit

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

keaixiaojiycw_tieba_post_crawler-0.1.0.tar.gz (16.2 kB view details)

Uploaded Source

Built Distribution

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

File details

Details for the file keaixiaojiycw_tieba_post_crawler-0.1.0.tar.gz.

File metadata

File hashes

Hashes for keaixiaojiycw_tieba_post_crawler-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9c4da60766db40bf13738a218d2ca629b32815b26bb7fcc9a7d99e9f7b5f2e16
MD5 4cce14641c2f9f8acbe123689c8c392d
BLAKE2b-256 1dac0b9fcfc2ed4a8c7fab49364f9412987a6a168d8002124bce1444b6c95071

See more details on using hashes here.

File details

Details for the file keaixiaojiycw_tieba_post_crawler-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for keaixiaojiycw_tieba_post_crawler-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4faaf321603fba5644fdbcbc39199aecaacfd8b1f2fbd8caf3e31a443901574b
MD5 2980f2c960ccde809b596aac681547bc
BLAKE2b-256 548354e5b609f4be89a4731ef44649fd37596e4a3f5e34d37b063842eb587733

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