summary()

fetching the summary of a Vtuber Fandom page

Vwiki().summary(vtuber: str, auto_correct: bool = False)

#or

AioVwiki().summary(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

str - a/an paragraph containing the vtuber's summary of the page

Note: will returns "None" if there is no vtuber's summary of the page

Use Case

Without auto_correct :

from vtuberwiki import AioVwiki
import asyncio

async def get_summary():
    async with AioVwiki() as aio_vwiki:
        s = await aio_vwiki.summary(vtuber="mythia batford",auto_correct=False)
        print(s) # No wiki results for Vtuber "mythia batford"
        # Correct one is "Mythia_Batford"

asyncio.run(get_summary()

With auto_correct :

from vtuberwiki import AioVwiki
import asyncio

async def get_summary():
    async with AioVwiki() as aio_vwiki:
        s = await aio_vwiki.summary(vtuber="mythia batford",auto_correct=True)
        print(s) #Mythia Batford (ミシア ・バットフォード) is an Indonesian female Virtual Youtuber. She uses both Indonesian and English on her stream.
        # it gets auto-corrected to "Mythia_Batford"

asyncio.run(get_summary()

Last updated