mikeage.net Logo
mikeage.net/2007/09/

mikeage.net @ ה' אייר תשס"ח

Archive for י' אלול תשס"ח - September 9, 2008

Batch Downloading of Lyrics for MP3

כ"א אלול תשס"ז - September 3, 2007

I recently wanted to try some synchronized lyric plugins for music playback. Unlike mp3/ogg files, synchronized lyrics are very hard to find. I figured my best bet would be to try and download text lyrics, and sync them myself. It's not a hard process, it just takes a few minutes.

Actually downloading the lyrics, though, can be slow. Many sites provide user contributed lyrics, but they're not set up nicely for easy downloading. Before I started to write my own perl parser, I decided to search CPAN, and came up with David Precious' outstanding Lyrics::Fetcher package. If you download his Bundle::Lyrics::Fetcher, you get the main fetcher, as well as modules LyricWiki, AZLyrics, and AstraWeb.

One I had this installed, the script to do this for all my music was quite simple. The only configuration needed is in the first variable; add a list of everywhere you have music. Note that this script currently only works for MP3; it could easily be expanded to process tags with other formats, however.

Source Code Download
(more...)

Quick Map
Content +
Personal +
Archives +
Site Stuff +
RBS Weather +
Search +
New Images
Visitors
Clustermap
Blogroll

Valid XHTML 1.1!
Printer Friendly Page
 

Last Modified: September 04, 2006 @ 09:11 CST