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.2.0.tar.gz (15.0 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.2.0.tar.gz.

File metadata

File hashes

Hashes for keaixiaojiycw_tieba_post_crawler-0.2.0.tar.gz
Algorithm Hash digest
SHA256 ef1c6832c2229bf0f9a99a56ad22abeee8bba49b7560720c34da385c25085937
MD5 6ae90b3f62b6cc3aed508d77cbd356f8
BLAKE2b-256 730997bb646a5731aa702eb4c6d6c1f06c5089e8f5a79567ae5e5c210fcee1cb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for keaixiaojiycw_tieba_post_crawler-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0810b7857cbaefef3d83765979ecb9c0601351213f899407cf679f228bcac99b
MD5 f16487983b86371a38769f6e0c68662d
BLAKE2b-256 0570fab40bef5d13346d13a2f808c7baf387691ccc78c7d9a4ef2c089aa52618

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