aiotieba-3.2.1
توضیحات
Asynchronous I/O Client for Baidu Tieba
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | aiotieba-3.2.1 |
| نام | aiotieba |
| نسخه کتابخانه | 3.2.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | - |
| ایمیل نویسنده | Starry-OvO <starry.qvq@gmail.com> |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/aiotieba/ |
| مجوز | - |
<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/Starry-OvO/aiotieba/actions">
<img src="https://img.shields.io/github/actions/workflow/status/Starry-OvO/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("天堂鸡汤")
print(threads[3:6])
asyncio.run(main())
```
*输出样例*
```log
[{'tid': 8090519523, 'pid': 145826926675, 'user': '熙时T', 'text': '记录下我的生活吧\n远渡重洋来到这,一周课不算多,20个小时课时,加上每天自学时间,差不多40个小时。9点到17点,一周四天。今天是周五,去了趟镇上买了一周的食物,平时上课,早上就吃点面包和牛奶,中餐是14点溜出来吃个3.99磅的meal deal(挺丰富的,一个大的三明治,一瓶饮料,一份小吃)晚上不想做就吃个巧克力喝点牛奶。周末就会自己做点火锅或者焖锅改善一下生活。这个周末本来想去利物浦和曼城,但下周二有个debate,周末还有个essay和journal,虽然比较简单,还是想认真对待。班上只有两个国人,室友都是当地人,对我很好,没有歧视啥的。'}, {'tid': 8256346027, 'pid': 146825511891, 'user': '煞南波万', 'text': '如题,好奇大家会存什么样的图图✧◔.̮◔'}, {'tid':: 8255392021, 'pid': 146820360992, 'user': 'Yfy1357oy', 'text': '有没有一些治愈的音乐推荐呢?\n如题,范围很广阔,鼓舞人心的、轻快的、浪漫的,有词的、无词的,中文的、外文的,都可以。希望大家能从音乐中找到生活的力量'}]
```
继续阅读[**入门教程**](https://aiotieba.cc/tutorial/start)
## 项目特色
+ 收录[**72个常用API**](https://github.com/Starry-OvO/aiotieba/tree/develop/aiotieba/api)
+ 类型注解全覆盖,方法注释全覆盖,类属性注释全覆盖,内部命名统一
+ 请求参数支持protobuf序列化
+ 支持websocket接口
+ 高一致性的密码学实现
## 友情链接
+ [TiebaManager(吧务管理器 有用户界面)](https://github.com/dog194/TiebaManager)
+ [TiebaLite(第三方安卓客户端)](https://github.com/HuanCheng65/TiebaLite/tree/4.0-dev)
+ [基于aiotieba的高弹性吧务审查框架](https://github.com/Starry-OvO/aiotieba-reviewer)
+ [贴吧protobuf定义文件合集](https://github.com/n0099/tbclient.protobuf)
نیازمندی
| مقدار | نام |
|---|---|
| <4,>=3.8.4 | aiohttp |
| <5,>=4.0.0 | beautifulsoup4 |
| <5,>=4.0.0 | lxml |
| <5,>=4.12.0 | protobuf |
| <4,>=3.0.0 | pycryptodome |
| <3,>=2.0.0 | tomli |
| <4.8,>=4.6.0.66 | opencv-contrib-python-headless |
| <4.8,>=4.6.0.66 | opencv-contrib-python |
| <4,>=3.0.0 | aiodns |
| <5.1,>=5.0.0 | pysimdjson |
| <0.18,>=0.5.3 | uvloop |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.8 | Python |
نحوه نصب
نصب پکیج whl aiotieba-3.2.1:
pip install aiotieba-3.2.1.whl
نصب پکیج tar.gz aiotieba-3.2.1:
pip install aiotieba-3.2.1.tar.gz