This repository now includes a database builder that saves all available Rami Levy products into SQLite.
The script uses the public transparency portal:
https://url.publishedprices.co.il- Username:
RamiLevi - Chain ID:
7290058140886
It logs in, finds PriceFull files, picks the newest file per branch, parses product XML, and upserts rows into a local database.
python3 build_rami_levy_database.pyOptional flags:
# Write to a custom DB path
python3 build_rami_levy_database.py --db-path data/rami_levy_products.db
# Ingest only first 3 branches (smoke test)
python3 build_rami_levy_database.py --max-branches 3
# Enable certificate verification (off by default in this environment)
python3 build_rami_levy_database.py --verify-sslMain tables:
products- canonical product metadata (one row peritem_code)branches- latest ingested file per branchbranch_product_prices- latest product price per branchingestion_runs- run history and status
- The importer handles both gzip and zip payloads.
- The script is idempotent: reruns update existing rows with latest values.