LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-29-2011, 11:21 PM   #1
SharpyWarpy
Member
 
Registered: Feb 2003
Location: Florida
Distribution: Fedora 18
Posts: 862

Rep: Reputation: 91
I want a script to download all the lyrics of an mp3 directory


Hi there.
I want a script to download all the lyrics to all the mp3s in a directory.
Many things turn up with a web search, most of them being plug-in scripts for various music clients.
I read this page, which got me started:
http://www.linux.com/archive/feature/114259
It has been the closest match to that for which I'm looking.
Unfortunately it's kinda old. So I looked at the source code of ncmpcpp, a console MPD client that can retrieve lyrics. Here's where I am so far. Running this URL in a web browser:
http://lyrics.wikia.com/api.php?acti...h&song=amazing
produces this output:

-<LyricsResult>
<artist>Aerosmith</artist>
<song>Amazing</song>
<lyrics>I kept the right ones out
An[...]</lyrics>
<url>http://lyrics.wikia.com/Aerosmith:Amazing</url>
<page_namespace>0</page_namespace>
<page_id>6337</page_id>
<isOnTakedownList>1</isOnTakedownList>
</LyricsResult>

As you can see here in the <lyrics> tag only the first part of the lyrics of the song "Amazing" by Aerosmith show up in the result. I'm wondering at this point why it only shows some and not all of the lyrics. If I can whip this I can proceed with the rest as explained in
http://www.linux.com/archive/feature/114259
to which I referred earlier. If anybody can help with this I'd be most grateful because I have only a dial up internet connection and it's discouraging to start up the connection just for the lyrics to one or two songs. I've downloaded many already using the lyrics search feature I compiled ncmpcpp with. I feel pretty strongly many others are searching for ways to do this too, and not just dial up users -- mainly for convenience if you're using a laptop somewhere there is no internet connectivity. Thanks in advance.
 
Old 07-30-2011, 02:31 AM   #2
micxz
Senior Member
 
Registered: Sep 2002
Location: CA
Distribution: openSuSE, Cent OS, Slackware
Posts: 1,131

Rep: Reputation: 75
{deleted}

Last edited by micxz; 07-30-2011 at 02:32 AM. Reason: oops wrong answer
 
Old 07-30-2011, 08:21 AM   #3
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852

Rep: Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037
The problem is apparently with the site. Content owners are forcing severe restrictions on them:

http://lyrics.wikia.com/Help:FAQ
 
Old 07-30-2011, 12:50 PM   #4
SharpyWarpy
Member
 
Registered: Feb 2003
Location: Florida
Distribution: Fedora 18
Posts: 862

Original Poster
Rep: Reputation: 91
Quote:
Originally Posted by David the H. View Post
The problem is apparently with the site. Content owners are forcing severe restrictions on them:

http://lyrics.wikia.com/Help:FAQ
Thanks for the link, that explains a lot. Just my opinion here but I think music should be free. The artists make most of their money on concert tour ticket sales. If the lyrics to a song have to be licensed to post does that mean a person is committing a crime just singing a song in the grocery store?
 
Old 07-31-2011, 12:54 AM   #5
SharpyWarpy
Member
 
Registered: Feb 2003
Location: Florida
Distribution: Fedora 18
Posts: 862

Original Poster
Rep: Reputation: 91
Question

Quote:
Originally Posted by David the H. View Post
The problem is apparently with the site. Content owners are forcing severe restrictions on them:

http://lyrics.wikia.com/Help:FAQ
Here's something strange. When I enter this in a web browser:
http://lyrics.wikia.com/api.php?acti...h&song=amazing
I only get partial lyrics. But when I go to the home page, lyrics.wikia.com and do a search for artist and lyrics I get them all.
 
Old 07-31-2011, 01:01 AM   #6
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852

Rep: Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037
Who knows? Maybe they have an agreement allowing it to be displayed directly in the site, but not through the api url.

In any case that site simply isn't reliable for your purposes and you'll have to find another source.
 
Old 07-31-2011, 01:09 AM   #7
SharpyWarpy
Member
 
Registered: Feb 2003
Location: Florida
Distribution: Fedora 18
Posts: 862

Original Poster
Rep: Reputation: 91
Quote:
Originally Posted by David the H. View Post
Who knows? Maybe they have an agreement allowing it to be displayed directly in the site, but not through the api url.

In any case that site simply isn't reliable for your purposes and you'll have to find another source.
Okay then. Thanks very much. I'll start looking for alternative sites.
 
Old 08-24-2011, 01:27 AM   #8
SharpyWarpy
Member
 
Registered: Feb 2003
Location: Florida
Distribution: Fedora 18
Posts: 862

Original Poster
Rep: Reputation: 91
Bump. It's me again.
I just downloaded the latest source of ncmpcpp and compiled. It has lots better and more updated sources for lyrics and ways of retrieving. Unfortunately looking at the source code made me dizzy and I had to give up after a couple hours. But I'm going to get back to it soon and maybe I can contribute a script that will at least download lyrics for all songs in a directory (album).
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Embeded lyrics in mp3 files aZZZ Linux - Desktop 2 03-04-2013 02:46 PM
Bash : input an mp3, and output the lyrics as text? Xeratul Linux - Software 7 12-18-2010 12:56 PM
[SOLVED] Add lyrics to mp3 tag using eyeD3 SharpyWarpy Linux - Software 8 04-04-2010 06:52 PM
Lyrics to shell : catdwldlyrc mymp3.mp3 frenchn00b Linux - Software 1 04-21-2008 05:11 AM
synchronized lyrics for current playing mp3 file? rlee923 General 1 04-20-2006 12:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:28 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration