Skip to main content

Asynchronous I/O Client for Baidu Tieba

Project description


简介

aiotieba使用asynciohttpx封装了大量百度贴吧核心API

本框架以提高二次开发速度为首要设计目标。规范且符合直觉的命名规律、全覆盖的类型注解和方法注释让你体验飞一般的开发体验

贴吧接口列表
  • 按回复时间/发布时间/热门序获取贴吧主题帖/精华帖列表。支持获取带转发/投票/转发嵌套投票/各种卡片的主题帖信息
  • 获取带图片链接/小尾巴内容/点赞情况/用户信息(用户名/portrait/user_id/等级/性别/是否锁回复)/每条回复的前排楼中楼(支持按或不按点赞数排序)的楼层列表
  • 获取带所有前述用户信息的楼中楼列表
  • 根据用户名/portrait/user_id中的任一项反查其他用户信息,或通过用户主页的tieba_uid反查其他用户信息
  • 使用小吧主、语音小编的账号删帖/屏蔽/封禁。支持删除视频帖/批量删帖/多于1天的封禁
  • 使用已被大吧主分配解封/恢复/处理申诉权限的吧务账号解封/恢复/处理申诉
  • 使用大吧主账号推荐帖子到首页/移动帖子到指定分区/加精/撤精/置顶/撤置顶/添加黑名单/查看黑名单/取消黑名单
  • 获取其他用户的主页信息/关注贴吧列表/关注用户列表/粉丝列表/发布的主题帖列表
  • 使用当前账号关注贴吧/取关贴吧/关注用户/取关用户/移除粉丝/获取屏蔽贴吧列表/屏蔽贴吧/取消屏蔽贴吧/点赞点踩/取消点赞点踩/签到/水帖/发送私信/获取回复历史
  • 获取一个贴吧的最新关注用户列表/等级排行榜/吧务列表/吧详情

安装并使用

  • 检查Python版本 (>=3.9)

  • 安装

pip install aiotieba
  • 体验一下
import asyncio

import aiotieba


async def main():
    async with aiotieba.Client() as client:
        print(await client.get_threads("天堂鸡汤"))


asyncio.run(main())

友情链接

客户名单

2023.01.04更新
吧名 关注用户数 最近29天日均访问量 日均主题帖数 日均回复数
抗压背锅 4,488,913 905,120 1,551 68,482
孙笑川 3,119,576 675,274 6,000 191,947
lol半价 2,000,354 87,455 661 10,339
宫漫 1,462,777 42,304 155 2,146
逆水寒ol 747,120 29,761 106 1,996
新孙笑川 521,467 40,696 289 13,692
vtuber 220,628 10,668 57 733
asoul 155,950 10,517 76 440
嘉然 59,345 10,724 78 1,043
向晚 30,738 7,205 54 689
贝拉 21,773 7,075 33 495
乃琳 17,328 3,544 21 264
vtuber自由讨论 17,196 4,040 1 34

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

aiotieba-2.10.1.tar.gz (78.2 kB view details)

Uploaded Source

Built Distribution

aiotieba-2.10.1-py3-none-any.whl (147.4 kB view details)

Uploaded Python 3

File details

Details for the file aiotieba-2.10.1.tar.gz.

File metadata

  • Download URL: aiotieba-2.10.1.tar.gz
  • Upload date:
  • Size: 78.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for aiotieba-2.10.1.tar.gz
Algorithm Hash digest
SHA256 be4d72f7b6f9e438b4dec94602d2cc434daef991c52764d98e102db896fd31b6
MD5 2d7b85f36c881dae57306e552b7f189b
BLAKE2b-256 40bcae0a531a42021384c225d26e00f818126696dee9a81d1a41564c20a2e4c7

See more details on using hashes here.

File details

Details for the file aiotieba-2.10.1-py3-none-any.whl.

File metadata

  • Download URL: aiotieba-2.10.1-py3-none-any.whl
  • Upload date:
  • Size: 147.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for aiotieba-2.10.1-py3-none-any.whl
Algorithm Hash digest
SHA256 aad9cb6278c326b0bbb5353118c8e5c38dc35dd49c186ff9ab15ec63f1194c39
MD5 2ba6b4b4276decad04b01eff0e3d4d4f
BLAKE2b-256 7938a9f31fb8a33e80962ce9b0bbdb4a9aef8edf8e78c246162c09481d7af147

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page