Skip to content

Latest commit

 

History

History
31 lines (19 loc) · 484 Bytes

README.md

File metadata and controls

31 lines (19 loc) · 484 Bytes

pypixiv

Pixiv ajax python wrapper

Feature

  • Asynchronous.

  • Fully type annotated.

  • The response is returned as an object.

Simple Example

import asyncio

from pypixiv.client import PixivClient


async def main():
    async with PixivClient() as client:
        illust = await client.illustinfo(79136250)
        user_id = int(illust.userId)
        print(user_id)
        user = await client.userinfo(user_id)
        print(user.name)


asyncio.run(main())