search()

searching for an available Vtuber Fandom page

Vwiki().search(vtuber: str, limit: int = 10)

#or

AioVwiki().search(vtuber: str, limit: int = 10)
Parameters
  • vtuber (str) - the vtuber's fandom page to search for

  • limit (int) - limit of the search results (max: 10)

Note: vtuber query will always get auto-corrected when calling search()

Returns

list - list of relevant searches

Note: will returns [] if there is no relevant results within the search limit

Use Case

Without auto_correct :

from vtuberwiki import AioVwiki
import asyncio

async def search_page():
    async with AioVwiki() as aio_vwiki:
        s = await aio_vwiki.search(vtuber="mythia batford",limit=3)
        print(s) # ['Mythia Batford', 'Mythia Batford/Gallery', 'Mythia Batford/Discography']

asyncio.run(search_page()

Note: the most relevant search is usually the first index

Last updated