From d3430207a8022aba9315c97b50a5e486dcfb0ed5 Mon Sep 17 00:00:00 2001 From: GulSam00 Date: Mon, 16 Jun 2025 18:53:55 +0900 Subject: [PATCH] =?UTF-8?q?fix=20:=20yml=20=ED=8C=8C=EC=9D=BC=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/crawl-recent-tj.yml | 2 +- packages/crawling/src/crawlRecentTJ.ts | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/crawl-recent-tj.yml b/.github/workflows/crawl-recent-tj.yml index fdb6538..d4020ea 100644 --- a/.github/workflows/crawl-recent-tj.yml +++ b/.github/workflows/crawl-recent-tj.yml @@ -18,7 +18,7 @@ jobs: node-version: "18" - name: Install dependencies - run: npm ci + run: npm install - name: run crawl script working-directory: packages/crawling diff --git a/packages/crawling/src/crawlRecentTJ.ts b/packages/crawling/src/crawlRecentTJ.ts index 22e6b76..0cd3472 100644 --- a/packages/crawling/src/crawlRecentTJ.ts +++ b/packages/crawling/src/crawlRecentTJ.ts @@ -52,6 +52,12 @@ area.find("li.search-data-list").each((index, element) => { const result: LogData = await postSongsDB(songs); +console.log("성공 개수 : ", result.success.length); +console.log("실패 개수 : ", result.failed.length); + +console.log("성공 데이터 : ", result.success); +console.log("실패 데이터 : ", result.failed); + updateDataLog(result.success, "postByRecentTJSuccess.txt"); updateDataLog(result.failed, "postByRecentTJFailed.txt");