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 19:47:06 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
178ec269ca029f3af583b96df4ed392a858075f3
178ec269
1 parent
d96f081e
Update app.js
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
app.js
app.js
View file @
178ec26
...
...
@@ -105,11 +105,12 @@ async function handleEvent(event) {
text
=
''
;
while
(
jsonResponse
.
indexOf
(
'text'
)
!=-
1
)
{
jsonResponse
=
jsonResponse
.
substring
(
jsonResponse
.
indexOf
(
'text'
)
+
5
);
jsonResponse
=
jsonResponse
.
substring
(
jsonResponse
.
indexOf
(
'text'
)
+
6
);
text
+=
jsonResponse
.
substring
(
0
,
jsonResponse
.
indexOf
(
"}"
))
+
" "
;
console
.
log
(
"text:"
+
text
);
}
console
.
log
(
"text:"
+
text
);
var
url
=
"https://www.genie.co.kr/search/searchLyrics?query="
+
encodeURI
(
text
);
console
.
log
(
url
);
request
(
url
,
function
(
error
,
response
,
html
){
...
...
Please
register
or
login
to post a comment