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.5.tar.gz
(5.1 kB
view hashes)
Built Distribution
Close
Hashes for vtuberwiki_py-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 718c4ce5f679f149e2f6aa0212e81d9e070498e78c5c504c66f14cf4383c0c9f |
|
MD5 | 49a7cd725a03c4a41b12b409fd9b5948 |
|
BLAKE2b-256 | 1c193517fe8e5a0572112477160b895c46e8b28fb1efc3da293bc9c7fa40cd30 |