Showing
1 changed file
with
4 additions
and
3 deletions
... | @@ -109,14 +109,15 @@ async function handleEvent(event) { | ... | @@ -109,14 +109,15 @@ async function handleEvent(event) { |
109 | } | 109 | } |
110 | 110 | ||
111 | text.replace('\n',''); | 111 | text.replace('\n',''); |
112 | - if(text.length>20) | 112 | + /*if(text.length>20) |
113 | { | 113 | { |
114 | text=text.substring(8,20); | 114 | text=text.substring(8,20); |
115 | - } | 115 | + }*/ |
116 | + console.log(text); | ||
116 | var url="https://www.genie.co.kr/search/searchLyrics?query="+ encodeURI(text); | 117 | var url="https://www.genie.co.kr/search/searchLyrics?query="+ encodeURI(text); |
117 | - console.log(url); | ||
118 | request(url, function(error, response, html){ | 118 | request(url, function(error, response, html){ |
119 | var $ = cheerio.load(html); | 119 | var $ = cheerio.load(html); |
120 | + | ||
120 | const $bodyList= $('#body-content > div.search_lyrics > div.music-list-wrap.type-lyrics > table > tbody > tr'); | 121 | const $bodyList= $('#body-content > div.search_lyrics > div.music-list-wrap.type-lyrics > table > tbody > tr'); |
121 | 122 | ||
122 | var songList=[]; | 123 | var songList=[]; | ... | ... |
-
Please register or login to post a comment