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

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_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