Skip to content

Saebasol/pypixiv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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())