Showing
1 changed file
with
1 additions
and
4 deletions
... | @@ -105,17 +105,14 @@ async function handleEvent(event) { | ... | @@ -105,17 +105,14 @@ async function handleEvent(event) { |
105 | }; | 105 | }; |
106 | 106 | ||
107 | request.post(options, function (error, response, body) { | 107 | request.post(options, function (error, response, body) { |
108 | - console.log(options); | ||
109 | var data= Buffer.from(body, 'base64').toString(); | 108 | var data= Buffer.from(body, 'base64').toString(); |
110 | - | 109 | + console.log(data); |
111 | var text=''; | 110 | var text=''; |
112 | - console.log(data); | ||
113 | while(data.indexOf('text\\')!=-1) | 111 | while(data.indexOf('text\\')!=-1) |
114 | { | 112 | { |
115 | data=data.substring(data.indexOf('text\\')+9); | 113 | data=data.substring(data.indexOf('text\\')+9); |
116 | text+=data.substring(0,data.indexOf("\\"))+" "; | 114 | text+=data.substring(0,data.indexOf("\\"))+" "; |
117 | } | 115 | } |
118 | - console.log(text); | ||
119 | text="나의모든날들"; | 116 | text="나의모든날들"; |
120 | console.log(text); | 117 | console.log(text); |
121 | var url="https://www.genie.co.kr/search/searchLyrics?query="+ encodeURI(text); | 118 | var url="https://www.genie.co.kr/search/searchLyrics?query="+ encodeURI(text); | ... | ... |
-
Please register or login to post a comment