Skip to content

BRN-SLP/Datahive-Bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

5 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Datahive Farm Bot

Automated farming and account management bot for Datahive.ai platform.

โš ๏ธ Note: 10% of registrations support the developer through referral codes. Thank you for using this free software!


๐Ÿ’ป Requirements

Software Minimum Version Recommended
Python 3.9 3.11+
PostgreSQL 16 16+
Resource Notes
RAM Depends on accounts/threads. Start with 1GB
Disk 500MB+ (logs can grow)
Proxies HTTP/SOCKS5. Test which work for your region

๐Ÿš€ Installation

Linux (Ubuntu/Debian)

# Update & install packages
sudo apt update && sudo apt upgrade -y
sudo apt install -y git curl wget python3 python3-pip python3-venv

# PostgreSQL 16
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo apt update && sudo apt install -y postgresql-16
sudo systemctl start postgresql && sudo systemctl enable postgresql

Create database:

sudo -u postgres psql
CREATE USER <YOUR_USER> WITH PASSWORD '<YOUR_PASSWORD>';
CREATE DATABASE <YOUR_DB> OWNER <YOUR_USER>;
GRANT ALL PRIVILEGES ON DATABASE <YOUR_DB> TO <YOUR_USER>;
\q

Install bot:

git clone https://github.com/BRN-SLP/Datahive-Bot.git
cd Datahive-Bot
python3 -m venv venv && source venv/bin/activate
pip3 install --upgrade pip
pip3 install -r requirements.txt

macOS / Windows

See VPS_SETUP.md for detailed instructions.


โš™๏ธ Configuration

Edit config/config.yaml:

Database

application_settings:
  database_url: "postgres://<USER>:<PASSWORD>@localhost:5432/<DATABASE>"

Threading

threads:
  registration: 1   # MUST BE 1 (rate limit protection)
  farming: 100      # Parallel farming threads

Multiprocess Farming

multiprocess_farming:
  enabled: true       # Enable multiprocess mode
  max_processes: 3    # Number of processes (0 = auto)

Farm Settings

farm_settings:
  max_devices_per_batch: 600
  max_concurrent_tasks: 250
  device_task_timeout: 60

Referral Codes

referral_code_settings:
  source: "db"              # "db" = random from database
                            # "file" = random from referral_codes.txt
                            # "static" = use static_referral_code
  static_referral_code: ""  # Used when source: "static"

Delays & Retry

delay_before_start:
  min: 60
  max: 180

retry:
  delay_seconds: 10
  max_registration_attempts: 5
  proxy_rotation: true
  proxy_rotation_after_timeouts: 3  # Rotate proxy after N consecutive timeouts

Email Redirect (Optional)

redirect_settings:
  enable: false
  email: "[email protected]"
  password: "your_app_password"
  imap_server: "imap.gmail.com"

IMAP Settings

imap_settings:
  use_proxy_for_imap: false
  timeout: 30
  servers:
    gmail.com: imap.gmail.com
    icloud.com: imap.mail.me.com
    # ... more servers

๐Ÿ“ Data Files

Located in config/data/:

File Format
login_accounts.txt email:password (one per line)
farm_accounts.txt email (one per line, empty = all)
proxies.txt http://user:pass@host:port
referral_codes.txt code (one per line)
export_stats_accounts.txt email (one per line, empty = all)

๐ŸŽฎ Usage

source venv/bin/activate
python main.py

Menu:

  • Login accounts - Register new accounts
  • Farm accounts - Start farming
  • Export stats - Export to CSV (results/stats/)
  • Clear proxies - Clear proxy assignments
  • Exit

For background running, see VPS_SETUP.md (tmux/screen).


๐Ÿ”ง Troubleshooting

Problem Solution
Database error Check PostgreSQL is running
Rate limit 429 Add more proxies
OTP not found Check IMAP settings

Made with โค๏ธ by BRN.SLP


โšก Performance Tuning

How Settings Work Together

Real parallelism = min(farming_threads ร— max_processes, max_concurrent_tasks)

Calculation Formula

Your Setup Formula Result
500 accounts ร— 2 devices = 1000 total devices
max_concurrent_tasks: 250 1000 รท 250 4 iterations

Recommended Settings by VPS Size

VPS Specs farming max_processes max_concurrent_tasks Best for
1 CPU / 1GB 50 1 50 Up to 200 accounts
2 CPU / 2GB 100 2 150 Up to 500 accounts
4 CPU / 4GB 100 3 300 Up to 1000 accounts
8+ CPU / 8GB+ 150 4-6 500 1000+ accounts

Example: 500 Accounts on 4 CPU / 4GB VPS

threads:
  registration: 1         # Always 1!
  farming: 100

multiprocess_farming:
  enabled: true
  max_processes: 3        # 3 parallel processes

farm_settings:
  max_devices_per_batch: 600
  max_concurrent_tasks: 300   # 100 ร— 3 = 300
  device_task_timeout: 60

Result: 100 threads ร— 3 processes = 300 parallel tasks

โš ๏ธ Important: registration must ALWAYS be 1 with delay โ‰ฅ60 seconds to avoid rate limits!

About

Automated farming bot for Datahive.ai. Multi-threaded, proxy support, and device fingerprinting.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages