은승우

Update app.js

Showing 1 changed file with 5 additions and 1 deletions
......@@ -108,7 +108,11 @@ async function handleEvent(event) {
}
text.replace('\n','+');
text.replace('\n','');
if(text.length>20)
{
text=text.substring(8,20);
}
var url="https://www.genie.co.kr/search/searchLyrics?query="+ encodeURI(text);
request(url, function(error, response, html){
var $ = cheerio.load(html);
......