How thomascantuti/checkout-bot-card-collection works
Checkout Bot Card Collection is an async browser-driven purchasing bot. CSV rows become validated tasks; the orchestrator runs bounded, retrying attempts that monitor stock, add items to the cart, complete address and shipping steps, and submit payment. Page objects implement the retailer workflow, with shared cookie/CAPTCHA handling and supporting configuration, lookup, logging, and browser utilities. The README documents major capabilities not fully visible in excerpts; edges to those integrations cite that documentation.
Main entry points: orchestrator.py Checkout orchestrator · base_page.py Page helpers · checkout_form_page.py Address form · payment_page.py Card payment
Components 21
Task runtime
- Task validation
checkout_bot/config/task.py - App settings
checkout_bot/config/settings.py - Checkout orchestrator
checkout_bot/core/orchestrator.py - Browser launcher
checkout_bot/core/browser.py - Sleep prevention
checkout_bot/core/sleep_prevention.py - Checkout errors
checkout_bot/core/exceptions.py
Checkout pages
- Product monitoring
checkout_bot/pages/product_page.py - Cart navigation
checkout_bot/pages/cart_page.py - Shipping selection
checkout_bot/pages/shipping_step_page.py - Address form
checkout_bot/pages/checkout_form_page.py - Card payment
checkout_bot/pages/payment_page.py
Shared services
- Page helpers
checkout_bot/pages/base_page.py - CAPTCHA client
checkout_bot/services/captcha_solver.py - Province lookup
checkout_bot/services/province_lookup.py - Random form data
checkout_bot/utils/random_data.py - Structured logging
checkout_bot/utils/logging.py
External systems
- ToysCenter site
- CapSolver API
- Adyen payment
Other components
- Task operator
- Checkout task CSV
tasks/toyscenter.csv
Connections 29
- Task operator → Checkout task CSV: supplies rows
README.md - Checkout task CSV → Task validation: loads rows
README.md - Checkout orchestrator → App settings: loads config
checkout_bot/core/orchestrator.py - Checkout orchestrator → Task validation: loads tasks
checkout_bot/core/orchestrator.py - Checkout orchestrator → Browser launcher: launches browser
checkout_bot/core/orchestrator.py - Checkout orchestrator → Sleep prevention: prevents sleep
checkout_bot/core/orchestrator.py - Checkout orchestrator → Structured logging: configures logs
checkout_bot/core/orchestrator.py - Checkout orchestrator → Product monitoring: monitors stock
checkout_bot/core/orchestrator.py - Checkout orchestrator → Cart navigation: opens cart
checkout_bot/core/orchestrator.py - Checkout orchestrator → Shipping selection: selects shipping
checkout_bot/core/orchestrator.py - Checkout orchestrator → Address form: submits address
checkout_bot/core/orchestrator.py - Checkout orchestrator → Card payment: submits payment
checkout_bot/core/orchestrator.py - Checkout orchestrator → CAPTCHA client: creates client
checkout_bot/core/orchestrator.py - Checkout orchestrator → Checkout errors: retries failures
checkout_bot/core/orchestrator.py - Product monitoring → Page helpers: inherits helpers
checkout_bot/pages/product_page.py - Cart navigation → Page helpers: inherits helpers
checkout_bot/pages/cart_page.py - Shipping selection → Page helpers: inherits helpers
checkout_bot/pages/shipping_step_page.py - Address form → Page helpers: inherits helpers
checkout_bot/pages/checkout_form_page.py - Card payment → Page helpers: inherits helpers
checkout_bot/pages/payment_page.py - Page helpers → CAPTCHA client: solves challenges
checkout_bot/pages/base_page.py - Address form → Province lookup: looks up province
checkout_bot/pages/checkout_form_page.py - Address form → Random form data: generates fields
checkout_bot/pages/checkout_form_page.py - Product monitoring → ToysCenter site: checks stock
checkout_bot/pages/product_page.py - Cart navigation → ToysCenter site: advances checkout
README.md - Shipping selection → ToysCenter site: selects method
README.md - Address form → ToysCenter site: fills form
README.md - Card payment → ToysCenter site: submits order
README.md - Card payment → Adyen payment: uses card fields
README.md - CAPTCHA client → CapSolver API: requests solutions
checkout_bot/services/captcha_solver.py