ChartLyrics API
This is a simple wrapper for: http://api.chartlyrics.com. You can search for songs, artists and get the lyrics.
Installation
pip install chartlyrics
Usage Example
from chartlyrics import ChartLyricsClient
client = ChartLyricsClient()
for song in client.search_text("starts with one"):
if "park" in song.artist.lower():
print(song.artist)
print(song.lyrics)
You can also use song.lyrics_object
which will return a Lyrics
object that you can index strophes and verses on:
lyrics = song.lyrics_object
print(lyrics[0][-1])
Check the tests
for more examples.
Development
Fork the repo, run:
poetry install
Add features, write tests, run:
poetry run pytest
Create a Pull request.