Skip to content

Commit

Permalink
Merge pull request #16 from EuilimChoi/feat/server
Browse files Browse the repository at this point in the history
수정중
  • Loading branch information
EuilimChoi authored Apr 7, 2022
2 parents 4ede72c + db8bede commit 97a3f86
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/controllers/getdata/getdatas.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ module.exports = async (req, res) => {

let content = await page.content(req.body.data[i].place_url);

const $ = cheerio.load(content);
const $ = await cheerio.load(content);
const photolists = await $(
"#mArticle > div.cont_photo > div.photo_area > ul >li"
).children("a");
Expand All @@ -114,6 +114,7 @@ module.exports = async (req, res) => {
// ).children("span");
// console.log(worktime);
// work_time = worktime[0].children[0].data;
console.log("crowling",photolists,menulists,price)

for (let i = 0; i < photolists.length; i++) {
let word =
Expand Down

0 comments on commit 97a3f86

Please sign in to comment.