ferrero-opentext/Python-Version/scripts
DJP 9a32d28389 Create Python b1_to_b2_download.py script for Global Masters workflow
Created complete B1→B2 automation script:
 Based on tested a1_to_a2_download.py structure
 Searches for campaigns with status B1
 Searches Global comm campaigns (not Local Adaptation)
 Downloads Global Master assets from DAM
 Uploads to Box with tracking IDs (folder: 348304357505)
 Stores in PostgreSQL with full metadata
 Updates status B1 → B2 when all successful
 Sends webhook with B1→B2 status change
 Sends email notifications (b1_to_b2_complete, b1_to_b2_partial)
 Log rotation (28 files, 10MB each)
 Single-run mode (process one campaign and exit)

Usage:
cd Python-Version
source venv/bin/activate
python scripts/b1_to_b2_download.py

Cron Setup:
*/5 * * * * python scripts/b1_to_b2_download.py

Test Campaign Available:
- NUTELLA PLANT-BASED LAUNCH
- Folder ID: 676f2bcde4c7bcf7ef783e97f7495069bf50b6bc
- Status: B1

Complete B1→B2 automation ready for testing!

🤖 Generated with Claude Code

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-03 12:47:48 -05:00
..
shared Fix CREATIVEX extraction - detect at category level not field level 2025-10-31 11:29:06 -04:00
a1_to_a2_download.py Make email notifications verbose with detailed asset lists 2025-10-31 08:27:05 -04:00
a2_to_a3_upload.py Complete Python automation implementation - All components built 2025-10-30 16:49:14 -04:00
a2_to_a3_upload_polling.py Enhanced A2→A3 email with complete processing details 2025-10-31 08:31:26 -04:00
b1_to_b2_download.py Create Python b1_to_b2_download.py script for Global Masters workflow 2025-11-03 12:47:48 -05:00
test_connection.py Complete Python automation implementation - All components built 2025-10-30 16:49:14 -04:00