Showing
1 changed file
with
7 additions
and
3 deletions
... | @@ -13,7 +13,7 @@ let kakaoOptions = { | ... | @@ -13,7 +13,7 @@ let kakaoOptions = { |
13 | qs: { | 13 | qs: { |
14 | 'query': 'CGV 광명', | 14 | 'query': 'CGV 광명', |
15 | //'category_group_code' : 'CT1', | 15 | //'category_group_code' : 'CT1', |
16 | - 'size' : 10 | 16 | + 'size' : 5 |
17 | }, | 17 | }, |
18 | encoding : 'UTF-8' | 18 | encoding : 'UTF-8' |
19 | }; | 19 | }; |
... | @@ -24,8 +24,12 @@ request(kakaoOptions, function (err, res, body) { | ... | @@ -24,8 +24,12 @@ request(kakaoOptions, function (err, res, body) { |
24 | if(!err && res.statusCode == 200){ | 24 | if(!err && res.statusCode == 200){ |
25 | info_list.forEach(info => { | 25 | info_list.forEach(info => { |
26 | if(info.category_name.endsWith("CGV")){ | 26 | if(info.category_name.endsWith("CGV")){ |
27 | - selectable_theaters.push(info.place_name); | 27 | + const theater_info = { |
28 | - console.log(info.place_name + " : " + info.place_url); | 28 | + "theater_name" : info.place_name, |
29 | + "theater_url" : info.place_url | ||
30 | + }; | ||
31 | + selectable_theaters.push(theater_info); | ||
32 | + //console.log(theater_info); | ||
29 | } | 33 | } |
30 | }); | 34 | }); |
31 | } | 35 | } | ... | ... |
-
Please register or login to post a comment