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)
Parameters
  • vtuber (str) - the vtuber's fandom page to search for

  • auto_correct (bool) - whether or not the vtuber query will get auto-corrected (default: False)

Note: it is recommended to turn off auto_correct for specific query search

Returns

List - a list of all of the available trivia (unsegmented)

Note: value will be "None" if there is no vtuber's trivia on the page

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