Metadata-Version: 2.2
Name: aiotieba
Version: 4.6.4
Summary: Asynchronous I/O Client for Baidu Tieba
Keywords: baidu,tieba
Author-Email: lumina37 <starry.qvq@gmail.com>
Classifier: Development Status :: 4 - Beta
Classifier: Framework :: AsyncIO
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: The Unlicense (Unlicense)
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Topic :: Internet :: WWW/HTTP :: Session
Project-URL: Repository, https://github.com/lumina37/aiotieba/
Project-URL: Documentation, https://aiotieba.cc/
Requires-Python: <3.15,>=3.10
Requires-Dist: aiohttp<4,>=3.11.0; python_version >= "3.10" and python_version < "3.14"
Requires-Dist: aiohttp<4,>=3.13.0; python_version >= "3.14"
Requires-Dist: beautifulsoup4<5,>=4.7.1
Requires-Dist: lxml<7,>=4.6.4; python_version == "3.10"
Requires-Dist: lxml<7,>=4.9.2; python_version == "3.11"
Requires-Dist: lxml<7,>=4.9.3; python_version == "3.12"
Requires-Dist: lxml<7,>=5.3.0; python_version == "3.13"
Requires-Dist: lxml<7,>=6.0.1; python_version >= "3.14"
Requires-Dist: protobuf<8,>=4.21.1
Requires-Dist: cryptography<47,>=35.0.0
Requires-Dist: async-timeout<6,>=4.0; python_version == "3.10"
Requires-Dist: StrEnum<0.5,>=0.4.0; python_version == "3.10"
Provides-Extra: img
Requires-Dist: opencv-contrib-python-headless<5,>=4.6.0.66; sys_platform == "linux" and extra == "img"
Requires-Dist: opencv-contrib-python<5,>=4.6.0.66; sys_platform != "linux" and extra == "img"
Provides-Extra: speedup
Requires-Dist: orjson<4,>=3.4.7; python_version == "3.10" and extra == "speedup"
Requires-Dist: orjson<4,>=3.7.10; python_version == "3.11" and extra == "speedup"
Requires-Dist: orjson<4,>=3.9.10; python_version == "3.12" and extra == "speedup"
Requires-Dist: orjson<4,>=3.10.7; python_version == "3.13" and extra == "speedup"
Requires-Dist: orjson<4,>=3.11.1; python_version >= "3.14" and extra == "speedup"
Requires-Dist: uvloop<1.0,>=0.16.0; python_version == "3.10" and sys_platform != "win32" and extra == "speedup"
Requires-Dist: uvloop<1.0,>=0.17.0; python_version == "3.11" and sys_platform != "win32" and extra == "speedup"
Requires-Dist: uvloop<1.0,>=0.18.0; python_version == "3.12" and sys_platform != "win32" and extra == "speedup"
Requires-Dist: uvloop<1.0,>=0.21.0; python_version == "3.13" and sys_platform != "win32" and extra == "speedup"
Requires-Dist: uvloop<1.0,>=0.22.0; python_version >= "3.14" and sys_platform != "win32" and extra == "speedup"
Description-Content-Type: text/markdown

<p align="center">
<a href="https://socialify.git.ci">
    <img src="https://user-images.githubusercontent.com/48282276/217530379-1348f7c5-7056-48f4-8c64-1c74caf5497c.svg">
</a>
</p>

<div align="center">
<p>
<a href="https://github.com/lumina37/aiotieba/actions">
    <img src="https://img.shields.io/github/actions/workflow/status/lumina37/aiotieba/CI.yml?branch=develop&label=CI&logo=github&style=flat-square" alt="GitHub Workflow Status">
</a>
<a href="https://pypi.org/project/aiotieba">
    <img src="https://img.shields.io/pypi/v/aiotieba?color=g&style=flat-square" alt="PyPI - Version">
</a>
<a href="https://pypi.org/project/aiotieba">
    <img src="https://img.shields.io/pypi/pyversions/aiotieba?style=flat-square" alt="PyPI - Python Version">
</a>
</p>
</div>

---

## 安装

```shell
pip install aiotieba
```

## 尝试一下

```python
import asyncio

import aiotieba


async def main():
    async with aiotieba.Client() as client:
        threads = await client.get_threads("天堂鸡汤")
        for thread in threads[3:6]:
            print(f"tid={thread.tid} text={thread.text}")


asyncio.run(main())
```

*输出样例*

```log
tid=8537603600 text=一人发一句最喜欢的游戏台词
楼主先来
很喜欢lol布隆说的“夜晚越黑暗，星星就越明亮”，尤其在当下这个有着诸多缺点的世界里，这句话让我感觉舒服了很多。在人们已不再相信理想主义的至暗时刻，高擎炬火之人便显得更加重要，至少我会坚持我的理想
---
tid=8093410706 text=大概是剪切板里的一些有意思的话
今天看自己的剪切板快满了，稍微翻翻突然发现以前存的一些话还挺有意思，就放在这里啦
（咦，疑似水帖啊我）
---
tid=8537699088 text=记录一下自己人生第一次当“老师”的经历^_^
明天我带的孩子们就“毕业”了，第一次当老师我改变了很多也收获了很多，就想着给自己记录一下这段宝贵的经历:-)
```

继续阅读[**入门教程**](https://aiotieba.cc/tutorial/start)

## 项目特色

+ 收录[**数十个常用API**](https://github.com/lumina37/aiotieba/tree/develop/aiotieba/api)
+ 类型注解全覆盖，方法注释全覆盖，内部命名统一
+ 支持protobuf序列化请求参数
+ 支持websocket接口
+ 与官方版本高度一致的密码学实现

## 友情链接

+ [带UI的吧务管理器 (dog194/TiebaManager)](https://github.com/dog194/TiebaManager)
+ [eztb贴吧工具箱 (Dilettante258/eazy-tieba)](https://www.eztb.org/)
+ [功能全面的贴吧管理QQ bot (TiebaMeow/TiebaManageBot)](https://github.com/TiebaMeow/TiebaManageBot)
+ [易于部署和使用的 Web 贴吧管理和自动化平台 (TiebaMeow/WebTiebaManager)](https://github.com/TiebaMeow/WebTiebaManager)
+ [灵活且高可靠的贴吧爬虫 (TiebaMeow/TiebaScraper)](https://github.com/TiebaMeow/TiebaScraper)
+ [基于aiotieba的tieba bot (adk23333/BungleCat)](https://github.com/adk23333/BungleCat)
+ [基于aiotieba的贴吧管理器 (adk23333/tieba-admin)](https://github.com/adk23333/tieba-admin)
+ [C#版本的贴吧接口库 (BaWuZhuShou/AioTieba4DotNet)](https://github.com/BaWuZhuShou/AioTieba4DotNet)
+ [贴吧第三方网页前端 (johnxina/rat)](https://0xacab.org/johnxina/rat)
+ [贴吧protobuf定义文件合集 更新至12.51 (n0099/tbclient.protobuf)](https://github.com/n0099/tbclient.protobuf)
+ [TiebaLite 第三方安卓客户端 (zzc10086/TiebaLite)](https://github.com/zzc10086/TiebaLite)

## 特别鸣谢

<p align="center">
<a href="https://jb.gg/OpenSourceSupport">
    <img src="https://resources.jetbrains.com/storage/products/company/brand/logos/jb_beam.svg">
</a>
</p>

为本开源项目提供的免费产品授权
