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.4.tar.gz
(4.3 kB
view hashes)
Built Distribution
Close
Hashes for chartlyrics-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a6404b7339cc1d267aedf2ed7858e8675a667535d97f8f5cc78a72395545e6af |
|
MD5 | 55df3cc4096c1ae2d88bb938a12587d6 |
|
BLAKE2b-256 | ebccaf55f8d09dacc2849a40ae0ed18d5e400c511c05769abd896f900f4ede33 |