Skip to content

gaetan1903/tononkira

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tononkira

Unofficial Module and CLI tool to get Malagasy song lyrics from https://tononkira.serasera.org

INSTALLATION

pip install tononkira

USAGE

MODULE

from tononkira import Tononkira 

tononkira = Tononkira()

print(tononkira.get("Ampy anahy")) 

CLI TOOL

image

ADVANCE USAGE

from tononkira import Tononkira 

tononkira = Tononkira()

# global search
res = tononkira.search("Ambondrona") 
print(res[:2])

# specific search by artist
res = tononkira.search_by(artist="LJO") 
print(res[:2])

# specific search by title
res = tononkira.search_by(title="Donia") 
print(res[:2])

# specific search by lyrics
res = tononkira.search_by(lyrics="tia anao aho") 
print(res[:2])

# specific search by title and lyrics
res = tononkira.search_by(title="Ngoma", lyrics="Mena masoandro") 
print(res[:2])

OUTPUT

[
{'title': 'Ajanony any', 'artist': 'AmbondronA', 'url': 'https://tononkira.serasera.org/hira/ambondrona/ajanony-any-1'},
{'title': 'ALEO ALOHA', 'artist': 'AmbondronA', 'url': 'https://tononkira.serasera.org/hira/ambondrona/aleo-aloha'}
]
...
[
{'title': 'Aya', 'artist': 'LJo', 'url': 'https://tononkira.serasera.org/hira/ljo/aya'},
{'title': 'Ino tianô ?', 'artist': 'LJo', 'url': 'https://tononkira.serasera.org/hira/ljo/ino-tian-'}
]
...
[
{'title': 'Donia', 'artist': 'Lion Hill', 'url': 'https://tononkira.serasera.org/hira/lion-hill/donia'},
{'title': 'RABODONIARIVO', 'artist': "Jonny R'afa", 'url': 'https://tononkira.serasera.org/hira/jonny-rafa/rabodoniarivo'}
]
...
[
{'title': '#586# [Feat. Mr Sayda]', 'artist': '306 BUK', 'url': 'https://tononkira.serasera.org/hira/306-buk/586-feat.-mr-sayda-1'},
{'title': "'Lay andro hodianao", 'artist': 'Mr Sayda (Misié Sayda)', 'url': 'https://tononkira.serasera.org/hira/mr-sayda-misi-sayda/lay-andro-hodianao'}
]
...
[
{'title': 'Ngoma', 'artist': 'Shyn', 'url': 'https://tononkira.serasera.org/hira/shyn-1/ngoma-1'}, 
{'title': 'Ngoma (feat Denise)', 'artist': 'Shyn', 'url': 'https://tononkira.serasera.org/hira/shyn-1/ngoma-feat-denise'}
]

from tononkira import Tononkira 

tononkira = Tononkira()

res = tononkira.fetch("https://tononkira.serasera.org/hira/ambondrona/aleo-aloha") 
print(res)

OUTPUT


ALEO ALOHA (Ambondrona)
----------------------

toa ts aritro iany
ny iandry anao
niezaka iany aho fa toa
...