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.4.0.tar.gz (17.8 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.4.0.tar.gz.

File metadata

File hashes

Hashes for keaixiaojiycw_tieba_post_crawler-0.4.0.tar.gz
Algorithm Hash digest
SHA256 f9063239d38adc0d3da268835a6351aabb0425078f1f4c357e79ddbc6af78656
MD5 6188b1b5a2c5b5e8a2591b7f11002827
BLAKE2b-256 f8a494c8851b382dbbc7bb696391aed1729cca53843d3ecddce08a02cff6a166

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for keaixiaojiycw_tieba_post_crawler-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7ff5c10dfd30ebc5035343e06eec51f8a6011fbcb437a2306c0dbc658a7e1180
MD5 145b51f5106820355ec0719165616f79
BLAKE2b-256 e802fed8a27394caf9fb702d9bdd5914358ba8eaf5a5fa0edf61e5143e7119c6

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