Lyrically is a Python-based lyric scraper for obtaining complete artist discographies.
Lyrically is your solution for effortlessly collecting and organizing the complete lyrical works of your favorite artists. Build a comprehensive library, fuel your music analysis, or simply enjoy having all the words at your fingertips.
- Python
- requests
- beautifulsoup4
- Python can be downloaded from here.
- Install dependencies using
pip install -r requirements.txt
stored in the src directory.
- Creating an instance of Lyrically
from lyrically import Lyrically
lyrically = Lyrically()
- Getting an artist's lyrics
from lyrically import Lyrically
lyrically = Lyrically()
artist_name = "JuStIn BiEbEr"
discography = lyrically.get_artist_discography(artist_name)
lyrics = []
for curr_album in discography:
curr_album_lyrics = {
"title": curr_album["title"],
"lyrics": [],
}
for song_ref in curr_album["songs"]:
curr_song_lyrics = lyrically.get_song_lyrics(song_ref["link"])
curr_album_lyrics["lyrics"].append(curr_song_lyrics)
lyrics.append(curr_album_lyrics)
Contributors
This project is licensed under the MIT License - see the LICENSE file for details