all()
fetching the all category of a Vtuber Fandom page
Vwiki().all(vtuber: str, auto_correct: bool = False)
#or
AioVwiki().all(vtuber: str, auto_correct: bool = False)
Use Case
Without auto_correct
:
from vtuberwiki import AioVwiki
import asyncio
async def get_all():
async with AioVwiki() as aio_vwiki:
s = await aio_vwiki.all(vtuber="mythia batford",auto_correct=False)
print(s) # No wiki results for Vtuber "mythia batford"
# Correct one is "Mythia_Batford"
asyncio.run(get_all()
With auto_correct
:
from vtuberwiki import AioVwiki
import asyncio
async def get_all():
async with AioVwiki() as aio_vwiki:
s = await aio_vwiki.all(vtuber="mythia batford",auto_correct=True)
print(s) # {'vtuber': 'mythia batford',
# 'summary': 'Mythia Batford (ミシア ・バットフォード) is ...',
# 'personality': "Mythia is a calm person, although ...",
# 'background': 'Her YouTube channel was created on ...',
# 'trivia': ['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.'],
# 'image_link': 'https://static.wikia.nocookie.net/virtualyoutuber/images/3/3a/Mythia_Batford_2.0.jpg...'}'}
# it gets auto-corrected to "Mythia_Batford"
asyncio.run(get_all()
Last updated