Toggle navigation
Toggle navigation
This project
Loading...
Sign in
임승현
/
Multiplex_Ticketing_Platform
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
임승현
2022-06-05 23:42:10 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
5dedf2e1d2b4aca998010a01c54048d2ae5bc4d6
5dedf2e1
1 parent
0002b394
Make an object containing info
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
SearchingTheatersAPI/app.js
SearchingTheatersAPI/app.js
View file @
5dedf2e
...
...
@@ -13,7 +13,7 @@ let kakaoOptions = {
qs
:
{
'query'
:
'CGV 광명'
,
//'category_group_code' : 'CT1',
'size'
:
10
'size'
:
5
},
encoding
:
'UTF-8'
};
...
...
@@ -24,8 +24,12 @@ request(kakaoOptions, function (err, res, body) {
if
(
!
err
&&
res
.
statusCode
==
200
){
info_list
.
forEach
(
info
=>
{
if
(
info
.
category_name
.
endsWith
(
"CGV"
)){
selectable_theaters
.
push
(
info
.
place_name
);
console
.
log
(
info
.
place_name
+
" : "
+
info
.
place_url
);
const
theater_info
=
{
"theater_name"
:
info
.
place_name
,
"theater_url"
:
info
.
place_url
};
selectable_theaters
.
push
(
theater_info
);
//console.log(theater_info);
}
});
}
...
...
Please
register
or
login
to post a comment