How jumpingchu/pchome-autobuy works
Project type and purpose
• This is an open-source Python automation tool (“PChome-AutoBuy”) that uses Selenium and the requests library to programmatically purchase items on the PChome e-commerce site.
• It’s not a full-stack application but rather a script-driven, single-purpose bot with configuration, a sequential workflow, and external system dependencies.
File structure
• Top-level files:
– pchome_autobuy.py – the main orchestration script
– settings.py – configuration constants (credentials, driver paths, retry counts)
– requirements.txt – third-party dependencies (selenium, requests, etc.)
– images/ – screenshots used in documentation
• No separate modules or packages – all logic lives in one script.
• External dependency: ChromeDriver binary launched by Selenium.
README for additional insights
• The README describes a linear workflow: check item availability → add to cart → login → select payment → fill in personal/credit-card details → submit order.
• It points out configuration of CHROME_PATH/DRIVER_PATH and optional session persistence in Chrome.