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

dict - a dict containing vtuber's name, summary, personality, background, trivia of the page

Note: each key's value will be "None" if the element is not present on the page

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