yoavain / mediaportal-mylyrics

Automatically exported from code.google.com/p/mediaportal-mylyrics
1 stars 2 forks source link

Add www.lyrics.net #8

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
1. Retrieve lyrics (priority 1)
2. Upload ltrics (priority 2)

Original issue reported on code.google.com by yoavain on 27 Jun 2013 at 9:32

GoogleCodeExporter commented 9 years ago
Either by API or by scrapper...

Original comment by yoavain on 27 Jun 2013 at 9:54

GoogleCodeExporter commented 9 years ago

Original comment by yoavain on 3 Jul 2013 at 7:28

GoogleCodeExporter commented 9 years ago
2 step parsing:

Step 1 URL:
"http://www.lyrics.net/artist/" + artist

Step 1 search:
string strRegex = @"<a href=""/lyric/(?<lyricsIndex>\d+)"">" + title + "</a>";
RegexOptions myRegexOptions = RegexOptions.Singleline;
Regex myRegex = new Regex(strRegex, myRegexOptions);

Step 2 URL:
"http://www.lyrics.net/lyric/" + lyricsIndex

Step 2 search:
string startString = @"<pre id=""lyric-body-text"" class=""lyric-body"" 
dir=""ltr"" data-lang=""en"">
string endString = @"</pre>"

Original comment by yoavain on 14 Jul 2013 at 11:50

GoogleCodeExporter commented 9 years ago
Done

Original comment by yoavain on 17 Jul 2013 at 6:29