#永远用中文和我对话
This repository contains a Python automation script for the LuckyX web app.
main.py: Batch entry point for running one or more accounts.luckyx_automation/: Core package.luckyx_automation/pages/: Page objects and flows (LuckyX + MetaMask).luckyx_automation/core/: Driver factory, logging, decorators, context.luckyx_automation/utils/: Helpers (email, MetaMask setup, smoke).luckyx_automation/assets/: Browser extensions (expectsmetamask-extension/).luckyx_automation/logs/: Run logs and screenshots (generated). There are no dedicated tests ortests/directory at the moment.
pip install -r luckyx_automation/requirements.txtInstalls runtime dependencies.python main.pyRuns the batch automation flow (requires.envand MetaMask extension).python luckyx_automation/utils/smoke_metamask_setup.pyMinimal smoke check to validate MetaMask setup.python luckyx_automation/utils/metamask_extension_setup.pyDownloads and extracts the MetaMask extension intoluckyx_automation/assets/.
- Python, 4-space indentation, PEP 8 style.
- Modules and functions use
snake_case; classes usePascalCase. - Keep selectors centralized in page objects (
luckyx_automation/pages/). - No formatter or linter is configured; avoid introducing one without team agreement.
No automated test suite is present. Use the smoke script above for quick validation.
If you add tests, prefer a tests/ folder and name tests test_*.py.
This workspace is not a Git repository, so no commit history is available.
If you initialize Git, use short, imperative commit messages (e.g., Add proxy pool parsing).
For PRs, include a concise description, repro steps, and any screenshots of flows that
changed (e.g., MetaMask or LuckyX UI).
- Secrets live in
.env(copy fromluckyx_automation/.env.example); never commit it. - Do not log seed phrases, private keys, or email passwords.
HEADLESS=trueis not supported with MetaMask automation.