Skip to content

A Python-based lyric scraper for obtaining complete artist discographies.

License

Notifications You must be signed in to change notification settings

filming/lyrically

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lyrically

Lyrically is a Python-based lyric scraper for obtaining complete artist discographies.

Description

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.

Getting Started

Dependencies

  • Python
  • requests
  • beautifulsoup4

Installing

  • Python can be downloaded from here.
  • Install dependencies using pip install -r requirements.txt stored in the src directory.

Executing program

  • 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)

Authors

Contributors

License

This project is licensed under the MIT License - see the LICENSE file for details

About

A Python-based lyric scraper for obtaining complete artist discographies.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages