Wrapper for chartlyrics api: http://api.chartlyrics.com
Project description
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) # Linking Park
print(song.lyrics) # Starts with one\n One thing I dont know why...
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]) # first strophe last verse
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.
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
chartlyrics-0.1.5.tar.gz
(4.4 kB
view hashes)
Built Distribution
Close
Hashes for chartlyrics-0.1.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 309d15f2def6fb6cc928e1cb2bb7c71b4668d83db42e2076054e78f552cbc166 |
|
MD5 | bc07439522a0ca6320262030b6f2d692 |
|
BLAKE2b-256 | b095983993444f7525ec75c0844fa3752bb6b6630b94435744bb8f27a6b62264 |