Skip to content

🎵 retrieve all song lyrics of an artist from the Genius API

Notifications You must be signed in to change notification settings

elliebirbeck/genius-lyrics-scraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A script which works around the limitations of the Genius API to get all lyrics of an artist in one step.

  • Create your own API client here
  • Clone this repository git clone https://github.com/elliebirbeck/genius-lyrics-scraper.git
  • Navigate to the working directory cd genius-lyrics-scraper
  • Install dependencies pip install -r requirements.txt
  • Create a config.py file with variables client_id, client_secret, access_token using your own API client details

Run with the artist name as the first arg and (optionally) the filename as the second arg. E.g:

python main.py "Amy Winehouse" "amy_lyrics"

The sample output file amy_lyrics.txt is provided in the repo. It provides all songs in one file, each seperated by an <EOS> tag.

About

🎵 retrieve all song lyrics of an artist from the Genius API

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages