lyrics_finder 0.0.2 → 0.0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +23 -13
- data/bin/lyricsfinder +1 -1
- data/lib/lyrics_finder/cli.rb +9 -7
- data/lib/lyrics_finder/providers/azlyrics.rb +12 -10
- data/lib/lyrics_finder/providers/lyrics_wikia.rb +12 -10
- data/lib/lyrics_finder/providers/song_lyrics.rb +12 -10
- data/lib/lyrics_finder/providers.rb +16 -14
- data/lib/lyrics_finder/song.rb +17 -15
- data/lib/lyrics_finder/version.rb +1 -1
- data/lib/lyrics_finder.rb +42 -40
- data/spec/lyrics_finder/lyrics_finder_spec.rb +13 -13
- data/spec/lyrics_finder/providers/azlyrics_spec.rb +3 -3
- data/spec/lyrics_finder/providers/lyrics_wikia_spec.rb +5 -5
- data/spec/lyrics_finder/providers/song_lyrics_spec.rb +3 -3
- data/spec/lyrics_finder/providers_spec.rb +4 -4
- metadata +1 -11
- data/spec/vcr_cassettes/Azlyrics_200_search.yml +0 -153
- data/spec/vcr_cassettes/LyricsWikia_200_search.yml +0 -1968
- data/spec/vcr_cassettes/LyricsWikia_Song_does_not_exist_search.yml +0 -631
- data/spec/vcr_cassettes/Nonexistent_Song_404_search.yml +0 -3952
- data/spec/vcr_cassettes/SongLyrics_200_search.yml +0 -2274
@@ -1,153 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: http://www.azlyrics.com/lyrics/americanauthors/bestdayofmylife.html
|
6
|
-
body:
|
7
|
-
encoding: US-ASCII
|
8
|
-
string: ''
|
9
|
-
headers:
|
10
|
-
Accept-Encoding:
|
11
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
-
Accept:
|
13
|
-
- "*/*"
|
14
|
-
User-Agent:
|
15
|
-
- Ruby
|
16
|
-
response:
|
17
|
-
status:
|
18
|
-
code: 200
|
19
|
-
message: OK
|
20
|
-
headers:
|
21
|
-
Server:
|
22
|
-
- nginx
|
23
|
-
Date:
|
24
|
-
- Sat, 28 Jun 2014 21:59:47 GMT
|
25
|
-
Content-Type:
|
26
|
-
- text/html
|
27
|
-
Transfer-Encoding:
|
28
|
-
- chunked
|
29
|
-
Connection:
|
30
|
-
- keep-alive
|
31
|
-
Vary:
|
32
|
-
- Accept-Encoding
|
33
|
-
body:
|
34
|
-
encoding: UTF-8
|
35
|
-
string: "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\r\n<html
|
36
|
-
xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\" lang=\"en\">\r\n<head>\r\n<title>AMERICAN
|
37
|
-
AUTHORS LYRICS - Best Day Of My Life</title>\r\n<meta http-equiv=\"Content-Type\"
|
38
|
-
content=\"text/html; charset=utf-8\" />\r\n<meta name=\"description\" content=\"Lyrics
|
39
|
-
to "Best Day Of My Life" song by AMERICAN AUTHORS: I had a dream
|
40
|
-
so big and loud I jumped so high I touched the clouds Wo-o-o-o-o-oh [2x] I
|
41
|
-
stretched m...\" /> \r\n<meta name=\"keywords\" content=\"Best Day Of My Life
|
42
|
-
lyrics, AMERICAN AUTHORS Best Day Of My Life lyrics, AMERICAN AUTHORS lyrics\"
|
43
|
-
/>\r\n<meta name=\"robots\" content=\"noarchive\" />\r\n<link rel=\"stylesheet\"
|
44
|
-
type=\"text/css\" href=\"../../azl2.css\" />\r\n<script type=\"text/javascript\"
|
45
|
-
src=\"http://www.azlyrics.com/external.js\"></script>\r\n<script type=\"text/javascript\"
|
46
|
-
src=\"http://images.azlyrics.com/head.js\"></script>\r\n<script type=\"text/javascript\"
|
47
|
-
language=\"JavaScript\">\r\nArtistName = \"AMERICAN AUTHORS\";\r\nSongName
|
48
|
-
= \"Best Day Of My Life\";\r\n</script>\r\n</head>\r\n<body>\r\n<div id=\"h1head\"><h1>\"Best
|
49
|
-
Day Of My Life\" lyrics</h1></div>\r\n\r\n<div id=\"main\">\r\n<div class=\"noprint\">\r\n<script
|
50
|
-
type=\"text/javascript\" src=\"http://images.azlyrics.com/top_pop.js\"></script>\r\n\r\n<!--
|
51
|
-
flex -->\r\n<script>\r\ncf_page_artist = ArtistName;\r\ncf_page_song = SongName;\r\ncf_page_genre
|
52
|
-
= \"\";\r\ncf_adunit_id = \"39381789\";\r\ncf_flex = true;\r\n</script>\r\n<script
|
53
|
-
src=\"http://srv.clickfuse.com/showads/showad.php\"></script>\r\n<!-- flex
|
54
|
-
end -->\r\n\r\n<!-- AddThis Button BEGIN -->\r\n<iframe src=\"http://www.facebook.com/plugins/like.php?href=http://www.azlyrics.com/lyrics/americanauthors/bestdayofmylife.html&layout=button_count&show_faces=false&width=140&action=like&font=verdana&colorscheme=light&height=21\"
|
55
|
-
scrolling=\"no\" frameborder=\"0\" style=\"float:left; border:none; overflow:hidden;
|
56
|
-
width:140px; height:21px;\" allowTransparency=\"true\"></iframe>\r\n<script
|
57
|
-
type=\"text/javascript\">\r\n<!--\r\nvar addthis_config = {\r\n services_custom:
|
58
|
-
{\r\n name: \"Amazon\",\r\n url: \"http://www.amazon.com/gp/search?ie=UTF8&keywords=AMERICAN+AUTHORS%20Best+Day+Of+My+Life&tag=azlyricsunive-20&index=digital-music&linkCode=ur2&camp=1789&creative=9325\",\r\n
|
59
|
-
\ icon: \"http://images.azlyrics.com/play.gif\"}\r\n}\r\n// -->\r\n</script>\r\n<div
|
60
|
-
class=\"addthis_toolbox addthis_default_style\" style=\"float:right;\">\r\n\t<a
|
61
|
-
class=\"addthis_button_www.amazon.com\" title=\"Get MP3!\">MP3</a> \r\n\t<a
|
62
|
-
class=\"addthis_button_email\">Email</a>\r\n\t<a class=\"addthis_button_print\">Print</a>\r\n</div>\r\n<script
|
63
|
-
type=\"text/javascript\" src=\"http://s7.addthis.com/js/300/addthis_widget.js#username=azlyrics\"></script>\r\n\r\n<!--
|
64
|
-
AddThis Button END -->\r\n\r\n<!-- JANGO PLAYER -->\r\n<div style=\"clear:both;\">\r\n<iframe
|
65
|
-
width=\"325\" scrolling=\"no\" height=\"38\" frameborder=\"0\" vspace=\"0\"
|
66
|
-
hspace=\"0\" allowTransparency=\"true\" marginwidth=\"0\" marginheight=\"0\"
|
67
|
-
style=\"border: 0px none; padding:5px 0 30px;\" src=\"http://jmn.jangonetwork.com/az?cust_params=j_artist=AMERICAN
|
68
|
-
AUTHORS&j_title=Best Day Of My Life\"></iframe><br />\r\n</div>\r\n<!--
|
69
|
-
END OF JANGO PLAYER -->\r\n</div>\r\n\r\n<h2>AMERICAN AUTHORS LYRICS</h2>\r\n\r\n<div
|
70
|
-
class=\"ringtone\">\r\n<script>\r\n/* Above Lyrics */\r\n(function() {\r\n\tvar
|
71
|
-
opts = {\r\n\t\tartist: \"AMERICAN AUTHORS\",\r\n\t\tsong: \"Best Day Of My
|
72
|
-
Life\",\r\n\t\tgenre: \"\",\r\n\t\tadunit_id: 39382074,\r\n\t\tdiv_id: \"cf_async_\"
|
73
|
-
+ Math.floor((Math.random() * 999999999))\r\n\t};\r\n\tdocument.write('<div
|
74
|
-
id=\"'+opts.div_id+'\"></div>');var c=function(){cf.showAsyncAd(opts)};if(window.cf)c();else{cf_async=!0;var
|
75
|
-
\r\n\tr=document.createElement(\"script\"),s=document.getElementsByTagName(\"script\")[0];r.async=!0;r.src=\"//srv.tonefuse.com/showads/showad.js\";r.onload=c;r.onreadystatechange=function(){\"complete\"===this.readyState&&c()};s.parentNode.insertBefore(r,s)};\r\n\r\n})();\r\n</script>\r\n</div>\r\n\r\n<b>\"Best
|
76
|
-
Day Of My Life\"</b><br />\r\n\r\n<br />\r\n\r\n<div style=\"margin-left:10px;margin-right:10px;\">\r\n<!--
|
77
|
-
start of lyrics -->\r\nI had a dream so big and loud<br />\nI jumped so high
|
78
|
-
I touched the clouds<br />\nWo-o-o-o-o-oh <i>[2x]</i><br />\nI stretched my
|
79
|
-
hands out to the sky<br />\nWe danced with monsters through the night<br />\nWo-o-o-o-o-oh
|
80
|
-
<i>[2x]</i><br />\n<br />\nI'm never gonna look back<br />\nWhoa, I'm never
|
81
|
-
gonna give it up<br />\nNo, please don't wake me now<br />\n<br />\nOo-o-o-o-oo<br
|
82
|
-
/>\nThis is gonna be the best day of my life<br />\nMy life<br />\nOo-o-o-o-oo<br
|
83
|
-
/>\nThis is gonna be the best day of my life<br />\nMy life<br />\n<br />\nI
|
84
|
-
howled at the moon with friends<br />\nAnd then the sun came crashing in<br
|
85
|
-
/>\nWo-o-o-o-o-oh <i>[2x]</i><br />\nBut all the possibilities<br />\nNo limits
|
86
|
-
just epiphanies<br />\nWo-o-o-o-o-oh <i>[2x]</i><br />\n<br />\nI'm never
|
87
|
-
gonna look back<br />\nWhoa, I'm never gonna give it up<br />\nNo, just don't
|
88
|
-
wake me now<br />\n<br />\nOo-o-o-o-oo<br />\nThis is gonna be the best day
|
89
|
-
of my life<br />\nMy life<br />\nOo-o-o-o-oo<br />\nThis is gonna be the best
|
90
|
-
day of my life<br />\nMy life<br />\n<br />\nI hear it calling outside my
|
91
|
-
window<br />\nI feel it in my soul (soul)<br />\nThe stars were burning so
|
92
|
-
bright<br />\nThe sun was out 'til midnight<br />\nI say we lose control (control)<br
|
93
|
-
/>\n<br />\nThis is gonna be the best day of my life<br />\nMy life<br />\nOo-o-o-o-o<br
|
94
|
-
/>\nThis is gonna be the best day of my life<br />\nMy life<br />\nThis is
|
95
|
-
gonna be, this is gonna be, this is gonna be<br />\nThe best day of my life<br
|
96
|
-
/>\nEverything is looking up, everybody up now<br />\nThis is gonna be the
|
97
|
-
best day of my life<br />\nMy life\r\n<!-- end of lyrics -->\r\n</div>\r\n\r\n<br
|
98
|
-
/><br /><br /><br />\r\n\r\n\r\n<span class=\"smallfont\">Thanks to shadyfan
|
99
|
-
for correcting these lyrics.<br /></span>\n\r\n\r\n<form action=\"../../add.php\"
|
100
|
-
method=\"post\" id=\"corlyr\">\r\n<input type=\"hidden\" name=\"what\" value=\"correct_lyrics\"
|
101
|
-
/>\r\n<input type=\"hidden\" name=\"song_id\" value=\"299079\" />\r\n</form>\r\n\r\n<br
|
102
|
-
/>\r\n\r\n<div class=\"noprint\">\r\n\r\n<div class=\"bmenu\"><ul>\r\n\r\n<li
|
103
|
-
class=\"mfirst\"><a href=\"#\" onclick=\"document.getElementById('corlyr').submit();return
|
104
|
-
false;\">Submit Corrections</a></li>\r\n<li><a href=\"http://www.azlyrics.com/a/americanauthors.html\">AMERICAN
|
105
|
-
AUTHORS Lyrics</a></li>\r\n<li class=\"mlast\"><a class=\"main\" href=\"http://www.azlyrics.com\">A-Z
|
106
|
-
Lyrics</a></li>\r\n</ul></div>\r\n\r\n<div class=\"ringtone\">\r\n<script>\r\n/*
|
107
|
-
Below Lyrics */\r\n(function() {\r\n\tvar opts = {\r\n\t\tartist: \"AMERICAN
|
108
|
-
AUTHORS\",\r\n\t\tsong: \"Best Day Of My Life\",\r\n\t\tgenre: \"\",\r\n\t\tadunit_id:
|
109
|
-
39382075,\r\n\t\tdiv_id: \"cf_async_\" + Math.floor((Math.random() * 999999999))\r\n\t};\r\n\tdocument.write('<div
|
110
|
-
id=\"'+opts.div_id+'\"></div>');var c=function(){cf.showAsyncAd(opts)};if(window.cf)c();else{cf_async=!0;var
|
111
|
-
\r\n\tr=document.createElement(\"script\"),s=document.getElementsByTagName(\"script\")[0];r.async=!0;r.src=\"//srv.tonefuse.com/showads/showad.js\";r.onload=c;r.onreadystatechange=function(){\"complete\"===this.readyState&&c()};s.parentNode.insertBefore(r,s)};\r\n\r\n})();\r\n</script>\r\n</div>\r\n\r\n</div>\r\n\r\n<div
|
112
|
-
class=\"smallfont\">Writer(s): James Adam Shelley, Michael Goodman, Matthew
|
113
|
-
John Sanchez, Zachary Michael Barnett, David M. Rublin, Matthew Sanchez<br
|
114
|
-
/>\nCopyright: Sony/ATV Allegro, Round Hill Works, Needledown Publishing,
|
115
|
-
Round Hill Copyrights, Emi April Music Inc., Drawoc</div>\n<br />\n\n<div
|
116
|
-
class=\"noprint\"><div class=\"powered\"><span style=\"font-weight:bold;line-height:54px;vertical-align:top;\">Powered
|
117
|
-
by </span><img src=\"http://images.azlyrics.com/mxm.png\" width=\"184\" height=\"54\"
|
118
|
-
alt=\"MusixMatch\" /></div></div>\n\r\n\r\n<div class=\"noprint\">\r\n\r\n<!--
|
119
|
-
AddThis Button BEGIN -->\r\n<iframe src=\"http://www.facebook.com/plugins/like.php?href=http://www.azlyrics.com/lyrics/americanauthors/bestdayofmylife.html&layout=button_count&show_faces=false&width=140&action=like&font=verdana&colorscheme=light&height=21\"
|
120
|
-
scrolling=\"no\" frameborder=\"0\" style=\"float:left; border:none; overflow:hidden;
|
121
|
-
width:140px; height:21px;\" allowTransparency=\"true\"></iframe>\r\n<script
|
122
|
-
type=\"text/javascript\">\r\n<!--\r\nvar addthis_config = {\r\n services_custom:
|
123
|
-
{\r\n name: \"Amazon\",\r\n url: \"http://www.amazon.com/gp/search?ie=UTF8&keywords=AMERICAN+AUTHORS%20Best+Day+Of+My+Life&tag=azlyricsunive-20&index=digital-music&linkCode=ur2&camp=1789&creative=9325\",\r\n
|
124
|
-
\ icon: \"http://images.azlyrics.com/play.gif\"}\r\n}\r\n// -->\r\n\r\n</script>\r\n<div
|
125
|
-
class=\"addthis_toolbox addthis_default_style\" style=\"float:right;\">\r\n\t<a
|
126
|
-
class=\"addthis_button_www.amazon.com\" title=\"Get MP3!\">MP3</a> \r\n\t<a
|
127
|
-
class=\"addthis_button_email\">Email</a>\r\n\t<a class=\"addthis_button_print\">Print</a>\r\n</div>\r\n<script
|
128
|
-
type=\"text/javascript\" src=\"http://s7.addthis.com/js/300/addthis_widget.js#username=azlyrics\"></script>\r\n<!--
|
129
|
-
AddThis Button END -->\r\n<div class=\"cb\"></div>\r\n\r\n<form class=\"search\"
|
130
|
-
method=\"get\" action=\"http://search.azlyrics.com/search.php\">\r\n\r\nEnter
|
131
|
-
artist/album/song to search lyrics for:<div class=\"search_wr\"><input id=\"q\"
|
132
|
-
name=\"q\" class=\"search_text\" type=\"text\" value=\"\" /><button class=\"search_btn\"
|
133
|
-
type=\"submit\"></button><div id=\"qas\"></div></div>\r\n</form>\r\n\r\n<script
|
134
|
-
type=\"text/javascript\" src=\"http://images.azlyrics.com/bot_pop.js\"></script>\r\n\r\n<div
|
135
|
-
class=\"smenu\"><ul>\r\n<li><a href=\"http://www.azlyrics.com/adv.html\">Advertise
|
136
|
-
Here</a></li>\r\n<li><a href=\"http://www.azlyrics.com/privacy.html\">Privacy
|
137
|
-
Policy</a></li>\r\n<li><a href=\"http://www.azlyrics.com/copyright.html\">DMCA
|
138
|
-
Policy</a></li>\r\n<li class=\"mlast\"><a href=\"http://www.azlyrics.com/contact.html\">Contact
|
139
|
-
Us</a></li>\r\n</ul></div>\r\n\r\n</div>\r\n\r\n<div class=\"copyright\">AMERICAN
|
140
|
-
AUTHORS lyrics are property and copyright of their owners.<br />\"Best Day
|
141
|
-
Of My Life\" lyrics provided for educational purposes and personal use only.<br
|
142
|
-
/>\r\n\r\n<script type=\"text/javascript\"><!--\r\ncurdate=new Date();\r\ndocument.write(\"<b>Copyright
|
143
|
-
© 2000-\"+curdate.getFullYear()+\" AZLyrics.com<\\/b>\"); // -->\r\n</script>\r\n</div>\r\n\r\n</div>\r\n<script
|
144
|
-
type=\"text/javascript\">\r\n<!--\r\nvar gaJsHost = ((\"https:\" == document.location.protocol)
|
145
|
-
? \"https://ssl.\" : \"http://www.\");\r\ndocument.write(unescape(\"%3Cscript
|
146
|
-
src='\" + gaJsHost + \"google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E\"));\r\n//
|
147
|
-
\ -->\r\n</script>\r\n<script type=\"text/javascript\">\r\n<!--\r\ntry {\r\nvar
|
148
|
-
pageTracker = _gat._getTracker(\"UA-4309237-1\");\r\npageTracker._setDomainName(\".azlyrics.com\");\r\npageTracker._trackPageview();\r\n}
|
149
|
-
catch(err) {}\r\n// -->\r\n</script>\r\n<script type=\"text/javascript\"
|
150
|
-
src=\"http://tracking.musixmatch.com/t1.0/CrCUN3S8LSzWExldQP1a72X8pg2dMP36zTyWYiYfQvn50XryC2qC/ij8Q2YItHHbT4lmIY5LFVSXmiuORmemn+P/JdpRz0XROIYrcPq7WZTrxUNhyCKm6sQTSOqWFiNeXG+K759zuZ/Mk46CK0UyLG53FlOuYwzg9cYEHONB/3ZHxKLo90KPrblHH//Xs8jTgjZD7QFOUebQCJIa8GGx8hAFn/LoIEQ7uOqarfs4to0josb0U+dteJUnFV2EY1vr//BuPgYeYyurNpBCfwfdpVrzVM3Zx+1twBy9jtOTKGFmVp5+15GlC84uWEGM6efA0//LJwTMSff2Tc1ii8tZ0p8pFM7IjHV/AkE13LRUDVfayJWEopKXjrzDvQHyNtng9LYq7iVsXusqBhCHqb3R77jPGPXHD3o5CVHiMhkapYY=/\"></script>\r\n</body>\r\n</html>"
|
151
|
-
http_version:
|
152
|
-
recorded_at: Sat, 28 Jun 2014 21:59:49 GMT
|
153
|
-
recorded_with: VCR 2.9.2
|