No description
- Python 100%
- Fixed Discord monitor method call (start -> start_monitor) - Updated aiohttp timeout compatibility (Timeout -> ClientTimeout) - Added comprehensive test suite for all components - Validated CLI interface and argument parsing - Tested live endpoints with error handling - Verified async code paths work correctly - All 28 tests passing at 100% success rate |
||
|---|---|---|
| buyers | ||
| config | ||
| core | ||
| database | ||
| monitor | ||
| proxy | ||
| static | ||
| utils | ||
| .gitignore | ||
| config.ini.example | ||
| main.py | ||
| README.md | ||
| requirements.txt | ||
| test_bot.py | ||
""" PokeBot - Advanced Pokemon Card Buying Bot
Features
- Multi-Retailer Support: Target, Amazon, Walmart, Best Buy, Pokemon Center
- Real-time Monitoring: Check availability every second
- Discord Integration: Monitor channels for restock alerts
- Proxy Rotation: Automatic IP rotation to avoid bans
- Anti-Detection: Human-like behavior simulation
- Auto Checkout: Complete purchases automatically
- Notifications: Slack, Telegram, Email, Pushover alerts
- Session Management: Save/load browser sessions
- CAPTCHA Solving: Integrated CAPTCHA solver
Installation
# Clone repository
git clone https://github.com/user/pokebot.git
cd pokebot
# Create virtual environment
python -m venv venv
venv\Scripts\activate # Windows
source venv/bin/activate # Mac/Linux
# Install dependencies
pip install -r requirements.txt
# Install Playwright browsers
playwright install chromium
Configuration
-
Copy the example config file:
cp config.ini.example config.ini -
Edit
config.iniand fill in your details:- Retailer login credentials
- Payment information
- Discord token and channels
- Proxy API details
- Notification settings
Usage
Start the bot (all retailers)
python main.py start --products "Charizard Base Set" "Pokemon Cards"
Start with specific retailers
python main.py start --retailers target,amazon,walmart --products "Pokemon Cards"
Monitor a specific product
python main.py monitor --product "Shadow Realm Charizard" --retailer pokemon_center
Buy immediately
python main.py buy --product "Pokemon Cards" --quantity 4 --retailer target
Test configuration
# Test proxy connection
python main.py test --proxy
# Test retailer login
python main.py test --login target
Project Structure
pokeBot/
├── main.py # Entry point
├── config.ini # Configuration file
├── requirements.txt # Python dependencies
│
├── config/
│ └── settings.py # Configuration management
│
├── core/
│ ├── bot_engine.py # Main bot engine
│ └── monitor_manager.py # Product monitoring
│
├── monitor/
│ ├── base_monitor.py # Abstract monitor class
│ ├── discord_monitor.py # Discord integration
│ ├── target_monitor.py # Target-specific monitor
│ ├── amazon_monitor.py # Amazon-specific monitor
│ ├── walmart_monitor.py # Walmart-specific monitor
│ ├── bestbuy_monitor.py # Best Buy-specific monitor
│ └── pokemon_center_monitor.py # Pokemon Center monitor
│
├── buyers/
│ ├── base_buyer.py # Abstract buyer class
│ ├── factory.py # Buyer factory
│ ├── target_buyer.py # Target buyer
│ ├── amazon_buyer.py # Amazon buyer
│ ├── walmart_buyer.py # Walmart buyer
│ ├── bestbuy_buyer.py # Best Buy buyer
│ └── pokemon_center_buyer.py # Pokemon Center buyer
│
├── proxy/
│ ├── manager.py # Proxy rotation system
│ └── rotator.py # Proxy utilities
│
├── utils/
│ ├── anti_detection.py # Anti-detection measures
│ ├── notifications.py # Multi-channel notifications
│ ├── logger.py # Logging utilities
│ └── cookie_manager.py # Session management
│
├── database/
│ └── models.py # Database models
│
├── logs/ # Application logs
│
└── static/
├── cookies/ # Saved session cookies
└── user_profiles/ # Browser profiles
License
MIT License - See LICENSE file