项目作者: weakit

项目描述 :
A lyric scraper for mp3s
高级语言: Python
项目地址: git://github.com/weakit/lyrics-scraper.git
创建时间: 2017-12-30T10:30:54Z
项目社区:https://github.com/weakit/lyrics-scraper

开源协议:

下载


lyrics-scraper

A python script that scrapes lyrics from Genius and embeds it into a mp3’s ID3 tag.

Requires stagger, BeautifulSoup4 and requests.

To Install these, do

  1. pip install stagger requests beautifulsoup4

To use the search functionality, you will need an Client Access Token, which you can get at https://genius.com/api-clients. Paste the Token in lyrical.py

To use the script, download lyrical.py and point it towards an mp3 file.

  1. lyrical.py music.mp3

AcoustID Identification

If you have a bunch of mp3s with incorrect information or have feature artists in the artist/title tag, the script will (mostly) fail to find the lyrics.
To fix this, the script also supports identifing music via acoustID.

To use acoustID, place acoustID.py alongside the script.

Then you will need to install chromaprint, which you can find here.
Download the binary and aslo place it alongside the script or in your system path.

If you are on linux, your distribution may have its own package.