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