quote()
fetching the trivia of a Vtuber Fandom page
Vwiki().quote(vtuber: str, auto_correct: bool = False)
#or
AioVwiki().quote(vtuber: str, auto_correct: bool = False)
Use Case
Without auto_correct
:
from vtuberwiki import AioVwiki
import asyncio
async def get_q():
async with AioVwiki() as aio_vwiki:
s = await aio_vwiki.trivia(vtuber="moona",auto_correct=False)
print(s) # No wiki results for Vtuber "moona"
# Correct one is "Moona_Hoshinova"
asyncio.run(get_trivia()
With auto_correct
:
from vtuberwiki import AioVwiki
import asyncio
async def get_q():
async with AioVwiki() as aio_vwiki:
s = await aio_vwiki.trivia(vtuber="moona",auto_correct=True)
print(s)
# ['"Whatever happens in your life, please stay alive. I believe you can do it. Don\'t ever give up."']
# it gets auto-corrected to "Moona_Hoshinova"
asyncio.run(get_trivia()
Last updated