임승현

Make an object containing info

......@@ -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);
}
});
}
......