은승우

Update app.js

Showing 1 changed file with 2 additions and 1 deletions
......@@ -200,7 +200,7 @@ function handleEvent(event) {
};
request.post(options, function (error, response, body) {
var data=JSON.stringify(JSON.parse(body), null, ' ');
var data=JSON.stringify(body);
console.log(data);
var text='';
while(data.indexOf('text\\')!=-1)
......@@ -209,6 +209,7 @@ function handleEvent(event) {
text+=data.substring(0,data.indexOf("\\"))+" ";
}
text=text.substring(text.length/10+1,text.length/8+2);
text.replace(' ','');
console.log(text);
var url="https://www.genie.co.kr/search/searchLyrics?query="+text;
request(url, function(error, response, html)
......