Commit Graph

3 Commits

Author SHA1 Message Date
f71df3f558 Fix SKU conversion: rootSV base + '01', not base + variant
rootSV '0419363_1' was producing '4193631' (wrong)
Now correctly produces '41936301' (confirmed by user)

The '_N' suffix is a variant/image index, not part of the SKU.
Pattern: strip leading zero from base, append '01'.
2026-03-21 23:06:05 -07:00
c0ec0f947b Match product.png layout: image, name, stock, barcode, SKU/UPC
- Switched from pandoc markdown to direct LaTeX for precise layout control
- Each product gets its own page matching the mockup:
  • Large bordered product image (centered)
  • Product name (bold, left)
  • Stock + price line
  • Bordered UPC-A barcode (centered)
  • SKU and UPC text (small, left)
- Fixed WebP→PNG image conversion (DG CDN serves WebP as .jpg)
- Compile directly with pdflatex (pandoc strips images from raw .tex)
- Output: 5.6MB PDF, 7 pages, 6 products with real images and barcodes
2026-03-21 22:59:29 -07:00
e9efcf1460 Add disco.py: single working script that finds all pack/tin products and generates PDF
Extracts all 12 Pokemon products from HAR API responses,
filters to 6 card pack and tin products, downloads product images,
generates UPC-A barcodes, and produces a 157KB PDF catalog.

Products found:
1. Pokémon Trading Card Game, 15 Card Pack (In Stock)
2. Pokémon TCG Booster Pack with Promo Card & Coin
3. Pokemon Trading Card Game Sword & Shield Booster Pack
4. Pokémon Collectible Stacking Tin
5. Pokémon Trading Card Game Mini Tin
6. Pokémon Trading Card Game, Gardevoir Strong Bond Tin
2026-03-21 16:12:14 -07:00