trivia()
fetching the trivia of a Vtuber Fandom page
Vwiki().trivia(vtuber: str, auto_correct: bool = False)
#or
AioVwiki().trivia(vtuber: str, auto_correct: bool = False)
Use Case
Without auto_correct
:
from vtuberwiki import AioVwiki
import asyncio
async def get_trivia():
async with AioVwiki() as aio_vwiki:
s = await aio_vwiki.trivia(vtuber="mythia batford",auto_correct=False)
print(s) # No wiki results for Vtuber "mythia batford"
# Correct one is "Mythia_Batford"
asyncio.run(get_trivia()
With auto_correct
:
from vtuberwiki import AioVwiki
import asyncio
async def get_trivia():
async with AioVwiki() as aio_vwiki:
s = await aio_vwiki.trivia(vtuber="mythia batford",auto_correct=True)
print(s)
# ['She really likes the flavored Boba Taro drinks, noodles, bat, J-pop & K-pop songs, as well as purple and E-girls.', "She doesn't like summer, spicy food, ghosts, thunder, and neglect.", 'Her hobbies are singing, drawing, listening to music, eat, and simp to cute girls.']
# it gets auto-corrected to "Mythia_Batford"
asyncio.run(get_trivia()
Last updated