From c8ef132997e8dc5c5a59018c89c8aa4123e526ee Mon Sep 17 00:00:00 2001 From: Meng Lin Date: Wed, 24 Jan 2024 14:51:15 +1100 Subject: [PATCH] Prettier --- webscrape/script/scrapeProductInfo.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webscrape/script/scrapeProductInfo.ts b/webscrape/script/scrapeProductInfo.ts index b29e86e..2ad15cc 100644 --- a/webscrape/script/scrapeProductInfo.ts +++ b/webscrape/script/scrapeProductInfo.ts @@ -23,12 +23,12 @@ const igaProductInfo = async () => { } const woolworthsProductInfo = async () => { - let cookie = "" + let cookie = '' for (let i = 0; i < 3; i++) { try { cookie = await getCookie('https://www.woolworths.com.au') break - } catch { } + } catch {} } const report = await scrapeWoolworths(cookie) saveJson(`${basePath}/woolworths.json`, report.get())