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.3.0.tar.gz (15.1 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.3.0.tar.gz.

File metadata

File hashes

Hashes for keaixiaojiycw_tieba_post_crawler-0.3.0.tar.gz
Algorithm Hash digest
SHA256 0be5eecdbec33a61f8a2a70fe454cae9db7daab8244a6061b4732b3feb2aac28
MD5 983ac5632dee4aba63e4ed7698943c0c
BLAKE2b-256 7e0fcaa9aeaf13f08be10a222df1d0d8ba3ddd4fe47afdd05d08dcd0a26ea2ff

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for keaixiaojiycw_tieba_post_crawler-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 99f8a2e6d5a9601e1a369966d2a391ab02b50d06731a84cbe79543731464d0c1
MD5 997d9ce2abcc6e40037334c8d1811efc
BLAKE2b-256 39d2db38d595e5f4fa3d0a8bd74bed2577075d3b6e02860acdc665c57c0d4f08

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