Pixiv ajax python wrapper
-
Asynchronous.
-
Fully type annotated.
-
The response is returned as an object.
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())