Automate affiliate statistics tracking on HagoBuy with headless Chrome using Selenium.
This project has been archived. HagoBuy has shut down so this is no longer in use but the code may work for other shipping agents. This solution was built due to the fact that HagoBuy did not provide built in tools for statistic tracking.
Automates logging into HagoBuy, navigating to the affiliate center, and extracting key statistics. Built with Selenium, it operates in headless mode for seamless automation.
- ποΈ Automated login to HagoBuy
- π Navigation and extraction of affiliate statistics
- πΆοΈ Runs in headless mode for background execution
- π€ Sends extracted statistics via Telegram bot
- Python 3.6+
- Selenium
- ChromeDriver
Clone the repository and set up the virtual environment:
git clone https://your-repo-link.git
cd hagobuy-affiliate-checker
python -m venv .venv
# Windows
.venv\\Scripts\\activate
# macOS/Linux
source .venv/bin/activate
pip install -r requirements.txt
Create a .env
file in the root directory with your credentials:
# HagoBuy Account Credentials
HAGOBUY_ACCOUNT_EMAIL=your-email@example.com
HAGOBUY_ACCOUNT_PASSWORD=your_password
# Telegram Bot for Notifications
TELEGRAM_BOT_TOKEN=your_bot_token
TELEGRAM_CHAT_ID=your_chat_id
Run the script with:
python main.py
The script logs into HagoBuy, navigates to the affiliate center, extracts statistics, and sends them via Telegram.