JDipi / AutoLyrics-python

Python script that scrapes lyrics from Genius.com or Azlyrics.com and writes them to mp3 files

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AutoLyrics-python

By JDipi


Python script that scrapes lyrics from Genius.com or Azlyrics.com and writes them to mp3 files

Better, GUI version made with Electron!

Installation

  1. Download the repo
  2. Navigate to the downloaded repo, open cmd and run pip install -r requirements.txt
  3. When that finishes run the script by doing python lyrics.py with the below requirements...

Example command: python lyrics.py --titleMode file --dir "C:\Users\turtl\OneDrive\Desktop\test music\radiohead" --src genius

Arguments:

  • -h Show a help message
  • --titleMode Method the script uses to find the name of the song to search for on Genius or Azlyrics
    • "manual" If the name of the song exists in the filename
    • "file" If the name of the song exists in the metadata "title" tag
    • "entry" If the above two don't apply or if you just want to manually type each file name to search for
  • --dir Path to the folder which contains the mp3 files you want to rename
  • --src The source to get lyrics from
    • genius Genius.com (usually more reliable)
    • azlyrics Azlyrics.com

Screenshots

General CLI

"Manual" naming mode

"Entry" naming mode

Known issues (that I'll eventually fix)

  • Script crashes when there is a non-mp3 file in the directory
  • Error handling for bad user input may not work in all cases, I tried to cover them all
  • I might add a mode where it scans all subdirectories of the supplied directory for mp3 files rather than only staying on the 0th level

About

Python script that scrapes lyrics from Genius.com or Azlyrics.com and writes them to mp3 files


Languages

Language:Python 100.0%