Toggle navigation
Toggle navigation
This project
Loading...
Sign in
은승우
/
LINEBOT
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
은승우
2019-12-05 13:46:36 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
dca3e5183973754a0ed744303dc3227b438e2a25
dca3e518
1 parent
b853c074
Update app.js
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
app.js
app.js
View file @
dca3e51
...
...
@@ -105,7 +105,8 @@ async function handleEvent(event) {
};
request
.
post
(
options
,
function
(
error
,
response
,
body
)
{
console
.
log
(
body
.
type
);
console
.
log
(
document
.
getElementById
(
body
));
var
data
=
body
.
toString
(
'utf-8'
);
var
text
=
''
;
while
(
data
.
indexOf
(
'text\\'
)
!=-
1
)
...
...
@@ -114,7 +115,7 @@ async function handleEvent(event) {
text
+=
data
.
substring
(
0
,
data
.
indexOf
(
"\\"
))
+
" "
;
}
text
=
"나의모든날들"
;
console
.
log
(
text
);
var
url
=
"https://www.genie.co.kr/search/searchLyrics?query="
+
encodeURI
(
text
);
request
(
url
,
function
(
error
,
response
,
html
){
var
$
=
cheerio
.
load
(
html
);
...
...
Please
register
or
login
to post a comment