Git Product home page Git Product logo

tieba-manager's Introduction

Tieba-Manager

GitHub Workflow Status Language grade: Python Code style: black

简介

aiotieba库是一个使用asyncio+aiohttp实现的贴吧客户端

封装的贴吧接口列表

回复时间/发布时间/热门序获取贴吧主题帖/精华帖列表。支持获取带转发/投票/转发嵌套投票/各种卡片的主题帖信息

获取带图片链接/小尾巴内容/点赞情况/用户信息用户名/portrait/user_id/等级/性别/是否锁回复)/每条回复的前排楼中楼(支持按或不按点赞数排序)的楼层列表

获取带所有前述用户信息的楼中楼列表

根据用户名/portrait/user_id中的任一项反查其他用户信息,或通过用户主页的tieba_uid反查其他用户信息

使用小吧主、语音小编的账号删帖/屏蔽/封禁。支持删除视频帖/批量删帖/多于1天的封禁

使用已被大吧主分配解封/恢复/处理申诉权限的吧务账号解封/恢复/处理申诉

使用大吧主账号推荐帖子到首页/移动帖子到指定分区/加精/撤精/置顶/撤置顶/添加黑名单/查看黑名单/取消黑名单

获取其他用户的主页信息/关注贴吧列表/关注用户列表/粉丝列表/发布的主题帖列表

使用当前账号关注贴吧/取关贴吧/关注用户/取关用户/移除粉丝/获取屏蔽贴吧列表/屏蔽贴吧/取消屏蔽贴吧/点赞点踩/取消点赞点踩/签到/水帖/发送私信/获取回复历史

获取一个贴吧的最新关注用户列表/等级排行榜/吧务列表/吧详情

附加功能列表

数据库功能:缓存贴吧常量(如贴吧名到fid的映射关系)/为用户添加标记/为帖子或回复添加标记/为图像hash添加标记

图像处理功能:图像解码/二维码解析/图像hash计算

安装并使用

  • 确保你的Python版本在3.9及以上

  • 拉取代码

git clone https://github.com/Starry-OvO/Tieba-Manager.git
  • 安装依赖项
cd ./Tieba-Manager
pip install -r requirements.txt
  • 体验一下
import asyncio

import aiotieba


async def main():
    async with aiotieba.Client() as client:
        print(await client.get_threads("图拉丁"))


asyncio.run(main())

客户名单

2022.08.08更新

吧名 关注用户数 最近29天日均访问量 日均主题帖数 日均回复数
抗压背锅 3,880,924 1,239,308 2,910 89,013
孙笑川 2,231,653 693,935 8,331 203,081
lol半价 1,956,490 125,950 362 7,008
宫漫 1,305,203 51,022 254 3,716
新孙笑川 282,688 47,636 452 16,124
vtuber 211,324 20,981 151 1,533
asoul 158,775 28,554 301 1,936
嘉然 56,056 22,189 150 2,158
向晚 28,743 16,459 153 2,137
贝拉 21,565 13,402 76 1,402
乃琳 17,035 6,206 44 566
vtuber自由讨论 16,621 4,155 4 86
asoul一个魂儿 14,809 1,411 10 126
贝贝珈 1,646 1,225 3 38

友情链接

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.