An automated tool to help collect daily coins on AliExpress with human-like interactions to avoid detection.
- Automatic login to AliExpress account
- Changes region to Korea (for maximum coin rewards)
- Collects daily coins with realistic human-like behavior
- Interactive manual confirmation steps for critical actions
- Secure credential management using environment variables
- Python 3.7+
- Google Chrome browser
- A valid AliExpress account
-
Clone this repository:
git clone https://github.com/YOUR_USERNAME/AliExpress-Coin-Collector.git cd AliExpress-Coin-Collector -
Install required packages:
pip install -r requirements.txt -
Create a
.envfile for your credentials:cp .env.example .env -
Edit the
.envfile with your AliExpress login credentials:ALIEXPRESS_EMAIL=your_actual_email@example.com ALIEXPRESS_PASSWORD=your_actual_password
Run the script with:
python collect_coins.py
The script will:
- Open a Chrome browser window
- Navigate to the AliExpress coin collection page
- Log in with your credentials from the
.envfile - Ask for manual confirmation at critical steps (to ensure correct elements are clicked)
- Change region to Korea for maximum coin benefits
- Collect the daily coins
- Close the browser when complete
You can set up Windows Task Scheduler to run the script automatically once per day:
- Create a file named
run_collector.batin the project directory with the following content:@echo off cd /d %~dp0 echo Running AliExpress Coin Collector at %date% %time% python collect_coins.py echo Collection completed at %date% %time% pause
- Press Win + S and search for "Task Scheduler"
- Click on "Create Basic Task..." in the right panel
- Enter a name (e.g., "AliExpress Coin Collector") and description
- Select "Daily" for the trigger and set your preferred time (e.g., 10:00 AM)
- Select "Start a program" for the action
- Browse and select your
run_collector.batfile - Set the "Start in" field to your project directory path (e.g.,
C:\Users\username\AliExpress-Coin-Collector) - Check "Open the Properties dialog..." and click Finish
- In the Properties dialog:
- Go to the "General" tab and check "Run whether user is logged in or not"
- Go to the "Settings" tab and uncheck "Stop the task if it runs longer than..."
- Click "OK" to save the task
- The script requires manual confirmation steps, so fully unattended operation isn't possible with the current version
- If you want completely unattended operation, you would need to modify the script to remove the
input()prompts - Running automated scripts that interact with websites may violate terms of service
- Use at your own risk and consider AliExpress's policies
This script uses interactive confirmations at critical points to ensure the correct elements are being selected. When prompted:
- The target element will be highlighted with a red border
- You'll be asked to press Enter to proceed
- The script will then click the highlighted element and continue
This design prevents errors if AliExpress changes its interface layout.
- Your credentials are stored locally in the
.envfile, which should NEVER be committed to Git - The
.gitignorefile includes.envto prevent accidental commits - The script uses environment variables instead of hardcoded credentials
If you encounter issues:
- Login Failures: Ensure your credentials in the
.envfile are correct - Element Not Found Errors: AliExpress may have updated their website. Please create an issue on GitHub
- Captcha Challenges: The script includes human-like behavior, but if you encounter captchas frequently, try reducing usage frequency
This tool is provided for educational purposes only. Use at your own risk. The creator is not responsible for account suspensions, lost coins, or other issues that may arise from automated interactions with AliExpress. Always review the AliExpress Terms of Service before using automation tools.
Contributions are welcome! Please feel free to submit a Pull Request.