history()

fetching the background of a Vtuber Fandom page

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

#or

AioVwiki().history(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: True)

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

Returns

dict - a dictionary containing the year as the key , and the paragraph as the value

Note: will returns{}if there is no vtuber's history of the page

Use Case

Without auto_correct :

from vtuberwiki import AioVwiki
import asyncio

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

asyncio.run(get_background()

With auto_correct :

from vtuberwiki import AioVwiki
import asyncio

async def get_background():
    async with AioVwiki() as aio_vwiki:
        s = await aio_vwiki.history(vtuber="mythia batford",auto_correct=True)
        print(s)
        # {'Background': '\nHer YouTube channel was created on 15 October 2020...'2021': '\nOn 28 Fenruary, Mythia announced ..'2022': '\nOn 19 January, Mythia reached 400,000 subscribers on her YouTube channel....'}
        
        # it gets auto-corrected to "Mythia_Batford"

asyncio.run(get_background()

Last updated