From 69fd2929d753060271be0d2b59e3f950a617f858 Mon Sep 17 00:00:00 2001 From: Nemo Date: Fri, 10 Jan 2025 18:46:58 +0530 Subject: [PATCH] log better --- src/bngbirds.py | 1 + src/lavonne.py | 1 + src/paintbar.py | 2 -- 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bngbirds.py b/src/bngbirds.py index 04c9fcd8..f07bbba4 100644 --- a/src/bngbirds.py +++ b/src/bngbirds.py @@ -56,3 +56,4 @@ def parse_bng_bird_events(soup): # Write output JSON file with open("out/bngbirds.json", "w", encoding="utf-8") as f: json.dump(events, f, indent=2, ensure_ascii=False) + print(f"[BNGBIRDS] {len(events)} events") diff --git a/src/lavonne.py b/src/lavonne.py index f5e6f019..ae9ade3e 100644 --- a/src/lavonne.py +++ b/src/lavonne.py @@ -111,3 +111,4 @@ def parse_lavonne_events(soup): # Write output JSON file with open("out/lavonne.json", "w", encoding="utf-8") as f: json.dump(events, f, indent=2, ensure_ascii=False) + print(f"LAVONNE] {len(events)} events") diff --git a/src/paintbar.py b/src/paintbar.py index 7a03a70d..3a777d3a 100644 --- a/src/paintbar.py +++ b/src/paintbar.py @@ -55,8 +55,6 @@ def fetch_timings(date_str: str): def make_event(product, sp: Shopify): start_date, end_date = fetch_timings(product.title) - # URL may sometimes contain emojis, make sure they are encoded as EMOJI - print(product.url) return { "name": product.title,