Giter Club home page Giter Club logo

aiotieba's Introduction


安装

pip install aiotieba

尝试一下

import asyncio

import aiotieba


async def main():
    async with aiotieba.Client() as client:
        threads = await client.get_threads("天堂鸡汤")
        print(threads[3:5])


asyncio.run(main())

输出样例

[{'tid': 8256346027, 'pid': 146825511891, 'user': '煞南波万', 'text': '如题,好奇大家会存什么样的图图✧◔.̮◔'}, {'tid':: 8255392021, 'pid': 146820360992, 'user': 'Yfy1357oy', 'text': '有没有一些治愈的音乐推荐呢?\n如题,范围很广阔,鼓舞人心的、轻快的、浪漫的,有词的、无词的,中文的、外文的,都可以。希望大家能从音乐中找到生活的力量'}]

继续阅读入门教程

项目特色

  • 收录72个常用API
  • 类型注解全覆盖,方法注释全覆盖,类属性注释全覆盖,内部命名统一
  • 请求参数支持protobuf序列化
  • 支持websocket接口
  • 高一致性的密码学实现

友情链接

aiotieba's People

Contributors

starry-ovo avatar lin-yifan1 avatar aimersa avatar hawaii-ol avatar hikariyo avatar

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.