은승우

Update app.js

Showing 1 changed file with 1 additions and 4 deletions
......@@ -105,17 +105,14 @@ async function handleEvent(event) {
};
request.post(options, function (error, response, body) {
console.log(options);
var data= Buffer.from(body, 'base64').toString();
var text='';
console.log(data);
var text='';
while(data.indexOf('text\\')!=-1)
{
data=data.substring(data.indexOf('text\\')+9);
text+=data.substring(0,data.indexOf("\\"))+" ";
}
console.log(text);
text="나의모든날들";
console.log(text);
var url="https://www.genie.co.kr/search/searchLyrics?query="+ encodeURI(text);
......