vtuberwiki-py is a Python wrapper for VirtualYoutuber Fandom API.
Project description
vtuberwiki-py
vtuberwiki-py is a Python wrapper for VirtualYoutuber Fandom API.
Installation
To install vtuberwiki-py, simply run:
$ pip install vtuberwiki-py
Example
Searching for available fandom
→ Asynchronous method (non-blocking)
from vtuberwiki import AioVwiki
import asyncio
async def search_fandom():
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_fandom())
Note: the most relevant search is usually the first index
→ Synchronous method (blocking)
from vtuberwiki import Vwiki
import asyncio
def search_fandom():
vwiki = Vwiki()
s = vwiki.search(vtuber="mythia batford",limit=3)
print(s) #['Mythia Batford', 'Mythia Batford/Gallery', 'Mythia Batford/Discography']
search_fandom()
Note: the most relevant search is usually the first index
Fetching data of a category from the fandom
→ Asynchronous method (non-blocking)
from vtuberwiki import AioVwiki
async def get_summary():
async with AioVwiki() as aio_vwiki:
s = await aio_vwiki.summary(vtuber="mythia batford",auto_correct=True)
print(s) #Mythia Batford (ミシア ・バットフォード) is an Indonesian female Virtual Youtuber. She uses both Indonesian and English on her stream.
asyncio.run(get_summary())
→ Synchronous method (blocking)
from vtuberwiki import Vwiki
def get_summary():
vwiki = Vwiki()
s = vwiki.summary(vtuber="mythia batford",limit=3)
print(s) #Mythia Batford (ミシア ・バットフォード) is an Indonesian female Virtual Youtuber. She uses both Indonesian and English on her stream.
get_summary()
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
vtuberwiki-py-0.0.4.tar.gz
(5.1 kB
view hashes)
Built Distribution
Close
Hashes for vtuberwiki_py-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7c64f699ed3ccfd755455fbe0287ed4473548eb85a35b35146a74e2b1e5b6ebc |
|
MD5 | eb579c282073edb6e2a58373c114d90d |
|
BLAKE2b-256 | ae0dbf593926824fc042e4d72e4e7c60e402bee4948494fb8c37dde13bc23cb4 |