From 65671566588b231ff888fb42c6419b9e8e9b0afe Mon Sep 17 00:00:00 2001 From: hyejungg Date: Sun, 5 Jan 2025 16:29:51 +0900 Subject: [PATCH] =?UTF-8?q?=EB=B6=88=ED=95=84=EC=9A=94=ED=95=9C=20?= =?UTF-8?q?=EC=A3=BC=EC=84=9D=20=EC=82=AD=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/lib/parser.js | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/lib/parser.js b/src/lib/parser.js index b4759c4..997e2f9 100644 --- a/src/lib/parser.js +++ b/src/lib/parser.js @@ -75,23 +75,12 @@ const parsingForGeneral = async (url) => { } } }); - // TODO itemPrice를 못가져올 경우, div에서 꺼내오는 방법 연구해보기 - // if (!itemPrice) { - // console.log('itemPrice가 비었음!'); - // $('body').map((i, elem) => { - // console.log($(elem).find(`div`).text()); - // // return $(elem) - // // .find(`.${/.*[pP]rice.*/}`) - // // .text(); - // }); - // } } }); if (!itemName) { itemName = $('title').text(); } itemPrice = itemPrice ? getPriceWithoutString(itemPrice) : undefined; - // console.log(`im general`); return { item_img: itemImg, item_name: itemName, item_price: itemPrice }; };