A sophisticated automation tool designed to monitor and purchase Reddit accounts that match your specified criteria. The bot runs in Docker, making it platform-independent and easy to deploy.
- Automated Monitoring: Constantly monitors Reddit account listings
- Customizable Criteria: Filter by karma threshold, price, and specific keywords
- Docker Support: Run in an isolated container on any platform
- CAPTCHA Handling: Built-in handling for reCAPTCHA challenges
- Headless Operation: Can run without visible browser windows
- Debug Mode: Captures screenshots and page HTML for troubleshooting
- Test Mode: Simulates purchases without completing transactions
- Detailed Logging: Comprehensive logging of all actions
- Docker and Docker Compose installed
- At least 2GB of available RAM
- Internet connection
The following files should exist in your project directory:
one.py- Main script filechromedriver- Linux ChromeDriver binary (no extension)docker-compose.yml- Docker Compose configurationDockerfile- Docker build instructionsreddit_sniper_config.json- Configuration file (can be auto-generated)requirements.txt- Python dependencies
-
Clone or download this repository:
git clone https://github.com/yourusername/reddit-account-sniper-bot.git cd reddit-account-sniper-bot -
Ensure ChromeDriver is available:
The bot requires a Linux version of ChromeDriver (without extension) in the project directory. If you don't have it:
- Download the ChromeDriver for Linux that matches your Chrome version from: https://googlechromelabs.github.io/chrome-for-testing/
- Extract the
chromedriverfile to your project directory - Make sure it has no file extension
-
Build the Docker container:
docker-compose build
Before running the bot, customize the reddit_sniper_config.json file with your preferences. The configuration varies slightly depending on which script you're using (one.py or test.py).
This version of the bot focuses on finding accounts based on karma thresholds:
{
"target_url": "https://redaccs.com/#acc",
"refresh_interval": 30,
"min_karma": 1000,
"max_price": 50.0,
"headless": false,
"test_mode": true,
"debug_mode": true,
"coupon_code": "YOUR_COUPON_HERE",
"credentials": {
"email": "your_email@example.com",
"password": "your_password"
},
"checkout_info": {
"first_name": "John",
"last_name": "Doe"
}
}This version of the bot focuses on finding accounts based on specific keywords:
{
"target_url": "https://redaccs.com/shop/",
"refresh_interval": 30,
"min_karma": 1000,
"max_price": 50.0,
"headless": false,
"test_mode": true,
"debug_mode": true,
"search_keyword": "50x",
"coupon_code": "YOUR_COUPON_HERE",
"credentials": {
"email": "your_email@example.com",
"password": "your_password"
},
"checkout_info": {
"first_name": "John",
"last_name": "Doe"
}
}Configuration Options:
| Option | Description | Used in |
|---|---|---|
target_url |
URL of the page where Reddit accounts are listed | Both scripts |
refresh_interval |
How often to refresh the page (in seconds) | Both scripts |
min_karma |
Minimum karma threshold for account selection | Both scripts |
max_price |
Maximum price you're willing to pay (set to 0 for no limit) | Both scripts |
headless |
Set to true to run without visible browser windows |
Both scripts |
test_mode |
Set to true to simulate purchases without completing transactions |
Both scripts |
debug_mode |
Set to true to save screenshots and HTML for troubleshooting |
Both scripts |
search_keyword |
Specific keyword to look for in account listings (e.g., "50x" for accounts with 50k+ karma) | test.py only |
coupon_code |
Coupon code to apply during checkout | Both scripts |
credentials |
Your login credentials for the website | Both scripts |
checkout_info |
Your personal information for checkout | Both scripts |
Start the bot using Docker Compose:
docker-compose upThis will:
- Create and start the Docker container
- Mount your configuration and output directories
- Start the bot with your specified settings
- Display logs in real-time
For running in the background:
docker-compose up -dTo view logs while running in the background:
docker-compose logs -fThe bot performs the following actions:
- Initializes and logs into the website
- Monitors the page for Reddit accounts matching your criteria
- When a matching account is found, it:
- Clicks on the "Buy" button
- Applies any coupon code you've specified
- Fills in checkout information
- Solves any CAPTCHA challenges
- Completes the purchase (unless in test mode)
Monitoring Output:
- The terminal displays detailed logs of the bot's actions
- All logs are saved to
logs/reddit_sniper_YYYYMMDD.log - If debug mode is enabled, screenshots and HTML are saved on errors
You can stop the bot at any time by pressing Ctrl+C or running:
docker-compose downTo change settings:
- Stop the container
- Edit the
reddit_sniper_config.jsonfile - Restart the container with
docker-compose up
Log entries include:
- Timestamp
- Log level (INFO, WARNING, ERROR)
- Detailed message about the bot's actions
Example log entries:
2025-04-24 12:34:56 - INFO - Bot initialized with target URL: https://redaccs.com/shop/
2025-04-24 12:34:57 - INFO - Chrome started successfully in Docker container
2025-04-24 12:34:58 - INFO - Looking for Buy Now button...
2025-04-24 12:35:05 - INFO - Found matching account with 55K karma, price: $45.00
-
ChromeDriver Compatibility:
- If you see errors related to ChromeDriver, ensure you're using the Linux version without file extension
- The version should match the Chrome version in the Docker container
-
JavaScript Execution Errors:
- Some JavaScript errors are normal in Docker environments
- The bot has been configured to work around these limitations
-
"User data directory is already in use" Error:
- Stop all running containers with
docker-compose down - If the issue persists, restart Docker
- Stop all running containers with
-
CAPTCHA Solving Failures:
- Enable debug mode to get screenshots of CAPTCHA challenges
- Check if NextCaptcha API key is valid
When debug_mode is enabled, the bot will save:
- Screenshots at key points and when errors occur
- HTML source of the page when errors occur
These files are saved to the mounted volumes:
screenshots/- Contains all captured screenshotslogs/- Contains detailed log files
To use a different Reddit account provider:
- Update the
target_urlin your config file - You may need to modify the selectors in
one.pyif the website has a different structure
For advanced users, you can modify additional settings by editing one.py:
- Custom user agents
- Additional Chrome options
- Wait time configurations
- CAPTCHA handling strategies
- Your credentials are stored in plain text in the config file
- Use environment variables or a secure storage solution in production
- Run the bot in a controlled environment
- Be cautious when providing payment information
Happy Account Sniping!