임승현

Edit To Save the Information

......@@ -13,19 +13,22 @@ let kakaoOptions = {
qs: {
'query': 'CGV 광명',
//'category_group_code' : 'CT1',
'size' : 5
'size' : 10
},
encoding : 'UTF-8'
}
};
request(kakaoOptions, function (err, res, body) {
theater_list = JSON.parse(body).documents;
info_list = JSON.parse(body).documents;
let selectable_theaters = [];
if(!err && res.statusCode == 200){
theater_list.forEach(info => {
if(info.category_name.endsWith("CJCGV"))
info_list.forEach(info => {
if(info.category_name.endsWith("CGV")){
selectable_theaters.push(info.place_name);
console.log(info.place_name + " : " + info.place_url);
}
});
}
})
});
module.exports = router;
\ No newline at end of file
......