An open API service indexing awesome lists of open source software.

https://github.com/lumina37/aiotieba

贴吧接口合集✨可用于工具箱/吧务管理/数据采集
https://github.com/lumina37/aiotieba

aiohttp tieba

Last synced: 3 months ago
JSON representation

贴吧接口合集✨可用于工具箱/吧务管理/数据采集

Awesome Lists containing this project

README

          








GitHub Workflow Status


PyPI - Version


PyPI - Python Version


---

## 安装

```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)

## 特别鸣谢





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