The official Python Wrapper for KSoft API
Installing via pip:
pip install ksoftapi
import ksoftapi
kclient = ksoftapi.Client('Your API key here')
async def find_lyrics(query: str):
try:
results = await kclient.music.lyrics(query)
except ksoftapi.NoResults:
print('No lyrics found for ' + query)
else:
first = results[0]
print(first.lyrics)
Obtain an API key (Unavailable) | Documentation | Join our Discord server