Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/spyer/lyrics2mp3
Parse lyrics and add them into mp3 files (via id tags). Lyrics can then be viewed on iPhone, iTunes and other players.
https://github.com/spyer/lyrics2mp3
lyrics mp3 python3 scraper
Last synced: 3 months ago
JSON representation
Parse lyrics and add them into mp3 files (via id tags). Lyrics can then be viewed on iPhone, iTunes and other players.
- Host: GitHub
- URL: https://github.com/spyer/lyrics2mp3
- Owner: spyer
- License: mit
- Created: 2018-01-02T13:29:54.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2024-03-20T18:05:24.000Z (11 months ago)
- Last Synced: 2024-08-08T00:43:12.733Z (6 months ago)
- Topics: lyrics, mp3, python3, scraper
- Language: Python
- Size: 40 KB
- Stars: 5
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- project-awesome - spyer/lyrics2mp3 - Parse lyrics and add them into mp3 files (via id tags). Lyrics can then be viewed on iPhone, iTunes and other players. (Python)
README
# lyrics2mp3
Parse lyrics and add them into mp3 and m4a files (via id tags).
Lyrics can then be viewed on iPhone, iTunes and other players.What script does:
1. Scans directory recursively, or each file in playlist, for music files.
2. Reads artist and title from music tag.
3. Searches lyrics for each song on genius.com, azlyrics.com, lyricsgenius.com, songlyrics.com
4. Inserts lyrics into music file if found (unless simulating).Installation:
```
git clone https://github.com/spyer/lyrics2mp3.git
pip3 install -r requirements.txt
```If you have trouble installing, please check if **taglib** library is installed (may have to compile).
Usage:
```
Required arguments:
one of:
--dir DIR Directory to search for music files
--m3u PATH Playlist to search for music filesOptional arguments:
--genius_token TOKEN API token for genius.com music database. Without this token Genius will not be used. Sign up for token at https://genius.com/api-clients
--write_on_not_found Write '...' on files with no lyrics found
--overwrite Overwrite existing lyrics
--ignore_artist Ignore files' artists, look at song name only
--simulate, -s Simulate retrieval but change no files
--verbose, -v Level of debug info to display
--help Show all arguments
```