From 5e88615a69c557f6ad0b5426c1facec22d96cfef Mon Sep 17 00:00:00 2001 From: ben Date: Sat, 14 Mar 2026 18:45:55 -0400 Subject: [PATCH] added dotenv and completed t1.1 --- pm/tasks.org | 10 +++++----- requirements.txt | 1 + 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/pm/tasks.org b/pm/tasks.org index 63723e5..0f7ad9b 100644 --- a/pm/tasks.org +++ b/pm/tasks.org @@ -1,4 +1,4 @@ -* [ ] t1.1: harden giant receipt fetch cli (2-4 commits) +* [X] t1.1: harden giant receipt fetch cli (2-4 commits) ** acceptance criteria - giant scraper runs from cli with prompts or env-backed defaults for `user_id` and `loyalty` - script reuses current browser session via firefox cookies + `curl_cffi` @@ -12,9 +12,9 @@ - raw json archive remains source of truth ** evidence -- commit: -- tests: -- date: +- commit: `d57b9cf` on branch `cx` +- tests: `./venv/bin/python -m unittest discover -s tests`; `./venv/bin/python scraper.py --help`; verified `.env` loading via `scraper.load_config()` +- date: 2026-03-14 * [ ] t1.2: define grocery data model and file layout (1-2 commits) ** acceptance criteria @@ -28,7 +28,7 @@ - explicitly separate retailer-specific parsing from cross-retailer canonicalization ** notes -- this is the guardrail task so we don’t make giant-specific hacks the system of record +- this is the guardrail task so we don't make giant-specific hacks the system of record - keep schema minimal but extensible ** evidence diff --git a/requirements.txt b/requirements.txt index caa6c82..93bf9c7 100644 --- a/requirements.txt +++ b/requirements.txt @@ -7,3 +7,4 @@ jeepney==0.9.0 lz4==4.4.5 pycparser==3.0 pycryptodomex==3.23.0 +python-dotenv==1.1.1