You can get lyrics from genius with many usefull functions.
Project description
lyrcisScraper
You can scrape song lyrics that you want.
Getting Started
You can get lyrics easily with this small module.Also, you can get all artists whose name begins with specific letter with this module.Furthermore this module can get all song lyrics of artists whose name is begin with spesific letter.
Prerequisites and Installing
You need install this module with the following code below from pypi.
pip install lyricsScraper
Usage
First of all, you must import this module to your py projects by the following code below.
from lyricsScraper import lyricsScraper
If you want get all artists whose name is begin with spesific letter, use the following function below.
artist_with_letter(letter)
This function will return list of artists.
If you want get artist's songs, use the following function below.
request_song_url(artist_name, song_cap)
This function will return dictionary of songnames and genius song urls.
If you want scrape song lyrics with genius song url, use that following function below.
scrape_song_lyrics(url)
It will return as a string.
If you want scrape all song lyrics whose artist name is begin with spesific letter, use the following function below.You must define song capacity of each artist.
scrape_data(firstLetterOfArtist,songCapacityOfEachArtist)
It will return a dictionary.
If you want get song lyrics with song name and artist, use the following function below.In addition,You can probably get lyrics by defining only song name.
spesific_lyric(nameOfSongAndArtist)
It will return a string
If you want get song lyrics of spesific artist, use the following funciton below.You must define song capacity.
scrape_artists_songs(artistname,songcapacity)
It will return a dictionary.
Bulit With
License
This project is licensed under the MIT License - see the LICENSE.md file for details
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.