은승우

Update app.js

Showing 1 changed file with 4 additions and 3 deletions
......@@ -109,14 +109,15 @@ async function handleEvent(event) {
}
text.replace('\n','');
if(text.length>20)
/*if(text.length>20)
{
text=text.substring(8,20);
}
}*/
console.log(text);
var url="https://www.genie.co.kr/search/searchLyrics?query="+ encodeURI(text);
console.log(url);
request(url, function(error, response, html){
var $ = cheerio.load(html);
const $bodyList= $('#body-content > div.search_lyrics > div.music-list-wrap.type-lyrics > table > tbody > tr');
var songList=[];
......