From eb271fb496f3e49eefb9215c8d32f0a67567b31f Mon Sep 17 00:00:00 2001 From: Nulo Date: Mon, 1 Jan 2024 16:03:22 -0300 Subject: [PATCH] scrap manual: printear resultado --- scraper/cli.ts | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/scraper/cli.ts b/scraper/cli.ts index 2609b53..9507090 100644 --- a/scraper/cli.ts +++ b/scraper/cli.ts @@ -7,16 +7,19 @@ import { parseWarc } from "./scrap.js"; if (process.argv[2] === "auto") { await auto(); } else if (process.argv[2] === "scrap-carrefour-links") { - await scrapCarrefourProducts() + await scrapCarrefourProducts(); } else if (process.argv[2] === "scrap-dia-links") { - await scrapDiaProducts() + await scrapDiaProducts(); } else if (process.argv[2] === "scrap-coto-links") { - await scrapCotoProducts() + await scrapCotoProducts(); } else if (process.argv[2] === "scrap") { const warcPaths = process.argv.slice(3); if (warcPaths.length > 0) { for (const path of warcPaths) { - await parseWarc(path); + const res = await parseWarc(path); + console.info("======================================="); + console.info(path, res); + console.info("======================================="); } } else { console.error("Especificá WARCs para scrapear.");